mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 19:01:30 +08:00
refactor(mobile): share protected session & confirm dialogs
This commit is contained in:
parent
a89b868509
commit
69a5c90ada
@ -256,11 +256,9 @@ export default class DesktopLayout {
|
||||
.child(new PasswordNoteSetDialog())
|
||||
|
||||
.child(new UploadAttachmentsDialog())
|
||||
.child(new ProtectedSessionPasswordDialog())
|
||||
.child(new RevisionsDialog())
|
||||
.child(new DeleteNotesDialog())
|
||||
.child(new InfoDialog())
|
||||
.child(new ConfirmDialog())
|
||||
|
||||
.child(new CloseZenButton());
|
||||
|
||||
|
@ -16,6 +16,8 @@ import CloneToDialog from "../widgets/dialogs/clone_to.js";
|
||||
import ImportDialog from "../widgets/dialogs/import.js";
|
||||
import ExportDialog from "../widgets/dialogs/export.js";
|
||||
import MarkdownImportDialog from "../widgets/dialogs/markdown_import.js";
|
||||
import ProtectedSessionPasswordDialog from "../widgets/dialogs/protected_session_password.js";
|
||||
import ConfirmDialog from "../widgets/dialogs/confirm.js";
|
||||
|
||||
export function applyModals(rootContainer: RootContainer) {
|
||||
rootContainer
|
||||
@ -34,10 +36,10 @@ export function applyModals(rootContainer: RootContainer) {
|
||||
.child(new ImportDialog())
|
||||
.child(new ExportDialog())
|
||||
.child(new MarkdownImportDialog())
|
||||
// .child(new ProtectedSessionPasswordDialog())
|
||||
.child(new ProtectedSessionPasswordDialog())
|
||||
// .child(new RevisionsDialog())
|
||||
// .child(new DeleteNotesDialog())
|
||||
// .child(new InfoDialog())
|
||||
// .child(new ConfirmDialog())
|
||||
.child(new ConfirmDialog())
|
||||
.child(new PromptDialog())
|
||||
}
|
||||
|
@ -168,8 +168,6 @@ export default class MobileLayout {
|
||||
)
|
||||
.child(new MobileEditorToolbar())
|
||||
)
|
||||
.child(new ProtectedSessionPasswordDialog())
|
||||
.child(new ConfirmDialog())
|
||||
)
|
||||
.child(
|
||||
new FlexContainer("column")
|
||||
|
Loading…
x
Reference in New Issue
Block a user