From: Adam Dullage Date: Thu, 8 Feb 2024 15:01:58 +0000 (+0000) Subject: Add missing reference to 'parent'. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=418504ffb8d74e8549390332e5d6863016f5d87d;p=flatnotes.git Add missing reference to 'parent'. --- diff --git a/client/components/NoteViewerEditor.vue b/client/components/NoteViewerEditor.vue index fb3f997..2bbe6b0 100644 --- a/client/components/NoteViewerEditor.vue +++ b/client/components/NoteViewerEditor.vue @@ -585,6 +585,8 @@ export default { }, postAttachment(file) { + let parent = this; + if (reservedFilenameCharacters.test(file.name)) { this.badFilenameToast("filename"); return; @@ -612,7 +614,7 @@ export default { "An attachment with this filename already exists ✘" ); } else if (error.response?.status == 413) { - this.entityTooLargeToast("Attachment"); + parent.entityTooLargeToast("Attachment"); } else { EventBus.$emit( "showToast",