diff --git a/frontend/index.html b/frontend/index.html index 9ad084d61..bf4670943 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -23,6 +23,7 @@ // It has to be the full url, including the last /api/v1 part and port. // You can change this if your api is not reachable on the same port as the frontend. window.API_URL = '/api/v1' + window.ALLOW_ICON_CHANGES = true diff --git a/frontend/src/components/home/Logo.vue b/frontend/src/components/home/Logo.vue index d9093e42f..9b82388f1 100644 --- a/frontend/src/components/home/Logo.vue +++ b/frontend/src/components/home/Logo.vue @@ -1,6 +1,7 @@ diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index a028b3831..b0536026a 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -92,6 +92,7 @@ "discoverableByName": "Allow other users to add me as a member to teams or projects when they search for my name", "discoverableByEmail": "Allow other users to add me as a member to teams or projects when they search for my full email", "playSoundWhenDone": "Play a sound when marking tasks as done", + "allowIconChanges": "Show special logos during certain times", "weekStart": "Week starts on", "weekStartSunday": "Sunday", "weekStartMonday": "Monday", diff --git a/frontend/src/modelTypes/IUserSettings.ts b/frontend/src/modelTypes/IUserSettings.ts index c8ee09327..8084b1977 100644 --- a/frontend/src/modelTypes/IUserSettings.ts +++ b/frontend/src/modelTypes/IUserSettings.ts @@ -11,6 +11,7 @@ export interface IFrontendSettings { playSoundWhenDone: boolean quickAddMagicMode: PrefixMode colorSchema: BasicColorSchema + allowIconChanges: boolean filterIdUsedOnOverview: IProject['id'] | null defaultView?: DefaultProjectViewKind minimumPriority: Priority diff --git a/frontend/src/models/userSettings.ts b/frontend/src/models/userSettings.ts index 7ed787a6c..6d2df5473 100644 --- a/frontend/src/models/userSettings.ts +++ b/frontend/src/models/userSettings.ts @@ -21,6 +21,7 @@ export default class UserSettingsModel extends AbstractModel impl playSoundWhenDone: true, quickAddMagicMode: PrefixMode.Default, colorSchema: 'auto', + allowIconChanges: true, defaultView: DEFAULT_PROJECT_VIEW_SETTINGS.FIRST, minimumPriority: PRIORITIES.MEDIUM, } diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index 03864c2d2..51cd2e7e3 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -129,6 +129,7 @@ export const useAuthStore = defineStore('auth', () => { playSoundWhenDone: true, quickAddMagicMode: PrefixMode.Default, colorSchema: 'auto', + allowIconChanges: true, ...newSettings.frontendSettings, }, }) diff --git a/frontend/src/views/user/settings/General.vue b/frontend/src/views/user/settings/General.vue index 230d6d80f..e5f33bb80 100644 --- a/frontend/src/views/user/settings/General.vue +++ b/frontend/src/views/user/settings/General.vue @@ -123,6 +123,15 @@ {{ $t('user.settings.general.playSoundWhenDone') }} +
+ +