Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: added daily trash interval option

alihamuhf3a0b998e4a8
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;