web: added daily trash interval option

This commit is contained in:
alihamuh
2024-01-23 14:22:23 +05:00
committed by Abdullah Atta
parent a47a38b16b
commit f3a0b998e4
2 changed files with 2 additions and 1 deletions

View File

@@ -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" },

View File

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