mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 05:00:40 +08:00
refactor(canvas): use better approach to disabling export
This commit is contained in:
parent
3c146cdb20
commit
abddde910c
@ -26,11 +26,6 @@ const TPL = `
|
||||
|
||||
.excalidraw-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.excalidraw button[data-testid="json-export-button"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:root[dir="ltr"]
|
||||
.excalidraw
|
||||
@ -44,10 +39,6 @@ const TPL = `
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
button[data-testid='save-button'], button[data-testid='json-export-button'] {
|
||||
display: none !important; /* these exports don't work, user should use import/export dialog */
|
||||
}
|
||||
|
||||
.library-button {
|
||||
display: none !important; /* library won't work without extra support which isn't currently implemented */
|
||||
}
|
||||
@ -558,7 +549,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
||||
onLinkOpen,
|
||||
UIOptions: {
|
||||
canvasActions: {
|
||||
saveToActiveFile: false
|
||||
saveToActiveFile: false,
|
||||
export: false
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user