From 7e0e0fe8f025f0715c34a96c9e8eb1b237d22e6a Mon Sep 17 00:00:00 2001 From: Miah Date: Thu, 27 Feb 2025 21:36:31 +0000 Subject: [PATCH] Allow user to set string based default activity --- frontend/lib/api/types/user.ts | 3 + frontend/pages/user/profile/edit.vue | 175 ++++++--------------------- 2 files changed, 43 insertions(+), 135 deletions(-) diff --git a/frontend/lib/api/types/user.ts b/frontend/lib/api/types/user.ts index 58ef25f6a..89ff6cb45 100644 --- a/frontend/lib/api/types/user.ts +++ b/frontend/lib/api/types/user.ts @@ -193,6 +193,7 @@ export interface UserBase { group?: string | null; household?: string | null; advanced?: boolean; + defaultActivity?: string; canInvite?: boolean; canManage?: boolean; canManageHousehold?: boolean; @@ -209,6 +210,7 @@ export interface UserIn { group?: string | null; household?: string | null; advanced?: boolean; + defaultActivity?: string; canInvite?: boolean; canManage?: boolean; canManageHousehold?: boolean; @@ -225,6 +227,7 @@ export interface UserOut { group: string; household: string; advanced?: boolean; + defaultActivity?: string; canInvite?: boolean; canManage?: boolean; canManageHousehold?: boolean; diff --git a/frontend/pages/user/profile/edit.vue b/frontend/pages/user/profile/edit.vue index 57855a83c..09124ff4f 100644 --- a/frontend/pages/user/profile/edit.vue +++ b/frontend/pages/user/profile/edit.vue @@ -3,18 +3,9 @@