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:
Tom Free
2021-11-25 13:45:58 +01:00
committed by Tom
parent f6ebc76917
commit 0469962c5e
9 changed files with 505 additions and 8 deletions

View File

@@ -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) {