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/deleted notes dialog: tweak the empty list placeholder
Adorian Doran312a264500b2
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex a36b3a5702..5c356f9ab1 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -424,7 +424,8 @@"deleted_notes_settings": "Deleted Notes Settings","deleted_notes_message": "Deleted notes have been erased.","no_changes_message": "No changes yet...",- "no_deleted_notes_message": "There are no deleted notes to show. Deleted notes are kept for {{- duration}} before being permanently erased.",+ "no_deleted_notes_message": "There are no deleted notes to show.",+ "no_deleted_notes_erasure_hint": "Deleted notes are kept for {{- duration}} before being permanently erased.","undelete_link": "undelete","confirm_undelete": "Do you want to undelete this note and its sub-notes?","confirm_undelete_to_default_location": "The parent of this note no longer exists, so it can't be restored to its original location. Restore it to the default location for new notes instead?",diff --git a/apps/client/src/widgets/dialogs/recent_changes.tsx b/apps/client/src/widgets/dialogs/recent_changes.tsxindex 219b915715..894194e227 100644--- a/apps/client/src/widgets/dialogs/recent_changes.tsx+++ b/apps/client/src/widgets/dialogs/recent_changes.tsx@@ -8,6 +8,7 @@ import toast from "../../services/toast";import Dropdown from "../react/Dropdown";import { FormDropdownDivider, FormListItem } from "../react/FormList";import Modal from "../react/Modal";+import NoItems from "../react/NoItems";import hoisted_note from "../../services/hoisted_note";import type { RecentChangeRow } from "@triliumnext/commons";import froca from "../../services/froca";@@ -107,9 +108,11 @@ export default function RecentChangesDialog() {<div className="recent-changes-content">{groupedByDate?.size? <RecentChangesTimeline groupedByDate={groupedByDate} setShown={setShown} />- : <>{deletedOnly- ? t("recent_changes.no_deleted_notes_message", { duration: formatDuration(eraseAfterSeconds, eraseTimeScale) })- : t("recent_changes.no_changes_message")}</>}+ : deletedOnly+ ? <NoItems icon="bx bx-trash-alt" text={t("recent_changes.no_deleted_notes_message")}>+ <small>{t("recent_changes.no_deleted_notes_erasure_hint", { duration: formatDuration(eraseAfterSeconds, eraseTimeScale) })}</small>+ </NoItems>+ : <NoItems icon="bx bx-history" text={t("recent_changes.no_changes_message")} />}</div></Modal>)