A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: replace fixed 7 days with trash cleanup interval
Abdullah Atta9d2bacdc5f08
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsxindex 7e37a145f..9269ad5f3 100644--- a/apps/web/src/common/dialog-controller.tsx+++ b/apps/web/src/common/dialog-controller.tsx@@ -209,8 +209,9 @@ export function showError(title: string, message: string) {export function showMultiDeleteConfirmation(length: number) {return confirm({title: `Delete ${length} items?`,- message:- "These items will be **kept in your Trash for 7 days** after which they will be permanently deleted.",+ message: `These items will be **kept in your Trash for ${+ db.settings?.getTrashCleanupInterval() || 7+ } days** after which they will be permanently deleted.`,positiveButtonText: "Yes",negativeButtonText: "No"});diff --git a/packages/core/api/settings.js b/packages/core/api/settings.jsindex aee33aaf9..5681114b0 100644--- a/packages/core/api/settings.js+++ b/packages/core/api/settings.js@@ -133,6 +133,9 @@ class Settings {await this._saveSettings();}+ /**+ * @returns {7 | 30 | 365 | -1}+ */getTrashCleanupInterval() {return this._settings.trashCleanupInterval || 7;}