Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile): add info dialog

Elian Doran44b9b3d7b831
diff --git a/docs/Release Notes/Release Notes/v0.92.8-beta.md b/docs/Release Notes/Release Notes/v0.92.8-beta.md
index 570cd2c30b..e3192837cf 100644
--- a/docs/Release Notes/Release Notes/v0.92.8-beta.md
+++ b/docs/Release Notes/Release Notes/v0.92.8-beta.md
@@ -20,7 +20,7 @@
* Document structure is now precalculated, so start-up time should be slightly increased.
* Optimized the content in order to reduce the size on disk.
* Mobile improvements:
- * The following dialogs are now accessible: bulk actions, branch prefix, include note, add link, sort child notes, note type selector, move/clone to, import/export, markdown import, note revisions
+ * The following dialogs are now accessible: bulk actions, branch prefix, include note, add link, sort child notes, note type selector, move/clone to, import/export, markdown import, note revisions, info dialog.
* Delete notes now requests confirmation.
* Modals now have a safe margin on their bottom and are scrollable.
diff --git a/src/public/app/layouts/desktop_layout.ts b/src/public/app/layouts/desktop_layout.ts
index 74be93f6fb..707481188e 100644
--- a/src/public/app/layouts/desktop_layout.ts
+++ b/src/public/app/layouts/desktop_layout.ts
@@ -252,13 +252,11 @@ export default class DesktopLayout {
)
)
)
- // Remove once modals are all merged
- .child(new PasswordNoteSetDialog())
-
- .child(new UploadAttachmentsDialog())
- .child(new InfoDialog())
+ .child(new CloseZenButton())
- .child(new CloseZenButton());
+ // Desktop-specific dialogs.
+ .child(new PasswordNoteSetDialog())
+ .child(new UploadAttachmentsDialog());
applyModals(rootContainer);
return rootContainer;
diff --git a/src/public/app/layouts/layout_commons.ts b/src/public/app/layouts/layout_commons.ts
index fc3679acea..d9559cde22 100644
--- a/src/public/app/layouts/layout_commons.ts
+++ b/src/public/app/layouts/layout_commons.ts
@@ -20,6 +20,7 @@ import ProtectedSessionPasswordDialog from "../widgets/dialogs/protected_session
import ConfirmDialog from "../widgets/dialogs/confirm.js";
import RevisionsDialog from "../widgets/dialogs/revisions.js";
import DeleteNotesDialog from "../widgets/dialogs/delete_notes.js";
+import InfoDialog from "../widgets/dialogs/info.js";
export function applyModals(rootContainer: RootContainer) {
rootContainer
@@ -41,7 +42,7 @@ export function applyModals(rootContainer: RootContainer) {
.child(new ProtectedSessionPasswordDialog())
.child(new RevisionsDialog())
.child(new DeleteNotesDialog())
- // .child(new InfoDialog())
+ .child(new InfoDialog())
.child(new ConfirmDialog())
.child(new PromptDialog())
}