mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
web: added daily trash interval option
This commit is contained in:
@@ -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" },
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user