Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/options/database: add a "Related settings" card
Adorian Doran9248c03eca71
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex ed22249673..4b0e804f62 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -1770,7 +1770,9 @@"start_over": "Start over","start_over_confirm": "Trilium will go back to the setup screen, where you can start a new knowledge base, restore a backup or sync from another device. You will be offered a backup of your current data first, and nothing is deleted until you choose one of those. Continue?","start_over_pending": "The setup screen will appear the next time this server is restarted. Restart the server when you are ready, or cancel below to leave everything as it is.",- "start_over_cancel": "Cancel start over"+ "start_over_cancel": "Cancel start over",+ "related_backup": "Backup",+ "related_backup_description": "Create or restore database backups, manage automatic backups."},"vacuum_database": {"title": "Vacuum Database",diff --git a/apps/client/src/widgets/type_widgets/options/database.tsx b/apps/client/src/widgets/type_widgets/options/database.tsxindex 12effb4fd0..3d88867369 100644--- a/apps/client/src/widgets/type_widgets/options/database.tsx+++ b/apps/client/src/widgets/type_widgets/options/database.tsx@@ -31,6 +31,7 @@ import { useNoteContext } from "../../react/hooks";import { useFetch } from "../../react/use_fetch";import DatabaseFileList from "./components/DatabaseFileList";import OptionsPageHeader from "./components/OptionsPageHeader";+import RelatedSettings from "./components/RelatedSettings";import { requestContentManagerSection } from "./content_manager";import { showCleanupDialog } from "./content_manager/space_usage/cleanup_dialog";@@ -74,6 +75,14 @@ export default function DatabaseSettings() {<MaintenanceOptions onDatabaseChanged={refreshInfo} /><StartOverOption state={startOverState} /><AnonymizationOptions />++ <RelatedSettings items={[+ {+ title: t("database.related_backup"),+ description: t("database.related_backup_description"),+ targetPage: "_optionsBackup"+ }+ ]} /></>);}