mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
wip: canvas-note patch
Conflicts: src/public/app/services/library_loader.js src/public/app/services/tree_context_menu.js src/public/app/widgets/note_actions.js src/services/consistency_checks.js src/services/utils.js
This commit is contained in:
@@ -168,7 +168,7 @@ const STRING_MIME_TYPES = [
|
||||
|
||||
function isStringNote(type, mime) {
|
||||
// render and book are string note in the sense that they are expected to contain empty string
|
||||
return ["text", "code", "relation-map", "search", "render", "book", "mermaid"].includes(type)
|
||||
return ["text", "code", "relation-map", "search", "render", "book", "mermaid", "canvas-note"].includes(type)
|
||||
|| mime.startsWith('text/')
|
||||
|| STRING_MIME_TYPES.includes(mime);
|
||||
}
|
||||
@@ -192,7 +192,7 @@ function formatDownloadTitle(filename, type, mime) {
|
||||
|
||||
if (type === 'text') {
|
||||
return filename + '.html';
|
||||
} else if (['relation-map', 'search'].includes(type)) {
|
||||
} else if (['relation-map', 'canvas-note', 'search'].includes(type)) {
|
||||
return filename + '.json';
|
||||
} else {
|
||||
if (!mime) {
|
||||
|
||||
Reference in New Issue
Block a user