From f3a0b998e4a80271b35e26f373984a8dc9f7ae94 Mon Sep 17 00:00:00 2001 From: alihamuh Date: Tue, 23 Jan 2024 14:22:23 +0500 Subject: [PATCH] web: added daily trash interval option --- apps/web/src/dialogs/settings/behaviour-settings.ts | 1 + packages/core/src/api/settings.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/dialogs/settings/behaviour-settings.ts b/apps/web/src/dialogs/settings/behaviour-settings.ts index 7a041ccf6..d58f4eeb2 100644 --- a/apps/web/src/dialogs/settings/behaviour-settings.ts +++ b/apps/web/src/dialogs/settings/behaviour-settings.ts @@ -125,6 +125,7 @@ export const BehaviourSettings: SettingsGroup[] = [ selectedOption: () => useSettingStore.getState().trashCleanupInterval.toString(), options: [ + { value: "1", title: "Daily" }, { value: "7", title: "Weekly" }, { value: "30", title: "Monthly" }, { value: "365", title: "Yearly" }, diff --git a/packages/core/src/api/settings.js b/packages/core/src/api/settings.js index cae659742..66bac7cf4 100644 --- a/packages/core/src/api/settings.js +++ b/packages/core/src/api/settings.js @@ -136,7 +136,7 @@ class Settings { } /** * Setting to -1 means never clear trash. - * @param {7 | 30 | 365 | -1} time + * @param {1 | 7 | 30 | 365 | -1} time */ async setTrashCleanupInterval(time) { this._settings.trashCleanupInterval = time;