Skip to content

Build your personal knowledge base with Trilium Notes

client/options/database: reorder options

Adorian Dorana09b8753f032
diff --git a/apps/client/src/widgets/type_widgets/options/database.tsx b/apps/client/src/widgets/type_widgets/options/database.tsx
index ab7e0cabae..634acb0393 100644
--- a/apps/client/src/widgets/type_widgets/options/database.tsx
+++ b/apps/client/src/widgets/type_widgets/options/database.tsx
@@ -33,10 +33,11 @@ import { showCleanupDialog } from "./content_manager/space_usage/cleanup_dialog"
/**
* What can be done to the knowledge base as a whole, rather than to anything inside it: keeping the
- * database sound, handing a copy of it to someone else with the contents taken out, and replacing
- * it altogether.
+ * database sound, replacing it altogether, and handing a copy of it to someone else with the
+ * contents taken out.
*
- * Starting over comes last, being the only thing in Options that leaves the application.
+ * Starting over follows the maintenance it is the last resort of; anonymized copies come after both,
+ * being for somebody else's benefit rather than this database's.
*/
export default function DatabaseSettings() {
const startOverState = useStartOver();
@@ -68,8 +69,8 @@ export default function DatabaseSettings() {
<DatabaseInfo refreshToken={infoToken} />
<MaintenanceOptions onDatabaseChanged={refreshInfo} />
- <AnonymizationOptions />
<StartOverOption state={startOverState} />
+ <AnonymizationOptions />
</>
);
}
@@ -174,26 +175,26 @@ function MaintenanceOptions({ onDatabaseChanged }: { onDatabaseChanged: () => vo
</CardOption>
<CardOption
- label={t("database_integrity_check.check_integrity_label")}
- description={t("database_integrity_check.check_integrity_description")}
+ label={t("consistency_checks.find_and_fix_label")}
+ description={t("consistency_checks.find_and_fix_description")}
>
<Button
- name="check-integrity-button"
- text={t("database_integrity_check.check_button")}
+ name="fix-consistency-issues-button"
+ text={t("consistency_checks.find_and_fix_button")}
size="micro"
- onClick={checkIntegrity}
+ onClick={fixConsistencyIssues}
/>
</CardOption>
<CardOption
- label={t("consistency_checks.find_and_fix_label")}
- description={t("consistency_checks.find_and_fix_description")}
+ label={t("database_integrity_check.check_integrity_label")}
+ description={t("database_integrity_check.check_integrity_description")}
>
<Button
- name="fix-consistency-issues-button"
- text={t("consistency_checks.find_and_fix_button")}
+ name="check-integrity-button"
+ text={t("database_integrity_check.check_button")}
size="micro"
- onClick={fixConsistencyIssues}
+ onClick={checkIntegrity}
/>
</CardOption>