diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index da6a4bff..28d607f7 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -4,14 +4,9 @@ - -todo: attachment control drag and drop should work on both file list and also attach side of things -todo: wiki drag and drop image should automatically attach the image and do the linkup etc todo: wiki image helper, if select ok but haven't selected a attachment it errors out, ok should not be available until there is a valid image selected -todo: attach files drag and drop helper should be expanded to include the selection tab, not just the list tab -todo: .webp type not available to wiki image helper when attached - this is because it's not identified as an image when it's a .webp extension - add to image types list for MIME + + todo: notification subscription form tags control looks like ordinary tags control might confuse people that they are tagging that subscription Maybe change the text to "Automatic filter tags" or "Only if tagged with" diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index 3dbbafea..5a52d9a9 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -22,6 +22,7 @@ const mimeTypes = { "image/gif": icons.image, "image/jpeg": icons.image, "image/png": icons.image, + "image/webp": icons.image, "application/pdf": icons.pdf, @@ -73,6 +74,7 @@ const extensions = { jpeg: icons.image, jpg: icons.image, png: icons.image, + webp: icons.image, pdf: icons.pdf, diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index 80bd4322..27517714 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -771,6 +771,12 @@ export default { let url = null; if (ex == 1) { + if ( + !this.selectedImageAttachment || + !this.selectedImageAttachment.url + ) { + return; + } //it's an attachment url = this.selectedImageAttachment.url; if (!this.imageText) {