diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index 8673f1b96..4ca4d65b1 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -139,6 +139,7 @@ "timezone": "Time zone", "overdueTasksRemindersTime": "Overdue tasks reminder email time", "filterUsedOnOverview": "Saved filter used on the overview page", + "showLastViewed": "Show last viewed projects on the overview page", "minimumPriority": "Minimum visible task priority", "dateDisplay": "Date display format", "dateDisplayOptions": { diff --git a/frontend/src/modelTypes/IUserSettings.ts b/frontend/src/modelTypes/IUserSettings.ts index 833638c93..6bab14abf 100644 --- a/frontend/src/modelTypes/IUserSettings.ts +++ b/frontend/src/modelTypes/IUserSettings.ts @@ -22,6 +22,7 @@ export interface IFrontendSettings { defaultTaskRelationType: IRelationKind backgroundBrightness: number | null alwaysShowBucketTaskCount: boolean + showLastViewed: boolean sidebarWidth: number | null commentSortOrder: 'asc' | 'desc' desktopQuickEntryShortcut: string diff --git a/frontend/src/models/userSettings.ts b/frontend/src/models/userSettings.ts index a3411706f..74cd00687 100644 --- a/frontend/src/models/userSettings.ts +++ b/frontend/src/models/userSettings.ts @@ -33,6 +33,7 @@ export default class UserSettingsModel extends AbstractModel impl defaultTaskRelationType: RELATION_KIND.RELATED, backgroundBrightness: null, alwaysShowBucketTaskCount: false, + showLastViewed: true, sidebarWidth: null, commentSortOrder: 'asc', desktopQuickEntryShortcut: 'CmdOrCtrl+Shift+A', diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index 0288ff4d4..cd168cc34 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -140,6 +140,7 @@ export const useAuthStore = defineStore('auth', () => { timeFormat: TIME_FORMAT.HOURS_24, defaultTaskRelationType: RELATION_KIND.RELATED, backgroundBrightness: 100, + showLastViewed: true, sidebarWidth: null, commentSortOrder: 'asc', desktopQuickEntryShortcut: 'CmdOrCtrl+Shift+A', diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 98cd1a1ce..f3739af9a 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -25,7 +25,7 @@ />

{{ $t('home.lastViewed') }}

diff --git a/frontend/src/views/user/settings/General.vue b/frontend/src/views/user/settings/General.vue index 25ae1bef4..256870076 100644 --- a/frontend/src/views/user/settings/General.vue +++ b/frontend/src/views/user/settings/General.vue @@ -105,6 +105,15 @@ />
+
+ +