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
feat(branch_prefix): add a cancel button
Elian Doran81270cbcbf39
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex f2376ccd7a..241c2f88f6 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -69,7 +69,8 @@"branch_prefix_saved_multiple": "Branch prefix has been saved for {{count}} branches.","affected_branches": "Affected branches ({{count}}):","preview_in_tree": "Preview in tree",- "description": "Prepended to the note title in this branch only. Other branches keep the original title."+ "description": "Prepended to the note title in this branch only. Other branches keep the original title.",+ "cancel": "Cancel"},"bulk_actions": {"bulk_actions": "Bulk actions",diff --git a/apps/client/src/widgets/dialogs/branch_prefix.tsx b/apps/client/src/widgets/dialogs/branch_prefix.tsxindex 3f2e20c985..f7ccb0a98b 100644--- a/apps/client/src/widgets/dialogs/branch_prefix.tsx+++ b/apps/client/src/widgets/dialogs/branch_prefix.tsx@@ -96,7 +96,10 @@ export default function BranchPrefixDialog() {onHidden={() => setShown(false)}onSubmit={onSubmit}helpPageId="TBwsyfadTA18"- footer={<Button text={t("branch_prefix.save")} />}+ footer={<>+ <Button text={t("branch_prefix.cancel")} onClick={() => setShown(false)} />+ <Button text={t("branch_prefix.save")} kind="primary" />+ </>}show={shown}><FormGroup label={t("branch_prefix.prefix")} name="prefix" description={t("branch_prefix.description")}>