From 42cd240347ea0a283efb5e6d3d7f47d59d9c6617 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 6 Mar 2026 12:53:48 +0200 Subject: [PATCH] cleanup warnings --- src/components/status_action_buttons/action_button.vue | 2 +- .../status_bookmark_folder_menu.js | 7 ++++--- .../status_bookmark_folder_menu.vue | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/status_action_buttons/action_button.vue b/src/components/status_action_buttons/action_button.vue index a9aedb9e3..a4d747142 100644 --- a/src/components/status_action_buttons/action_button.vue +++ b/src/components/status_action_buttons/action_button.vue @@ -88,7 +88,7 @@ diff --git a/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.js b/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.js index a3c97ffe6..7e92a0287 100644 --- a/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.js +++ b/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.js @@ -11,7 +11,8 @@ import { faChevronRight, faFolder } from '@fortawesome/free-solid-svg-icons' library.add(faChevronRight, faFolder) const StatusBookmarkFolderMenu = { - props: ['status', 'close'], + props: ['status'], + emits: ['success', 'error', 'close'], data() { return {} }, @@ -33,8 +34,8 @@ const StatusBookmarkFolderMenu = { this.$store .dispatch('bookmark', { id: this.status.id, bookmark_folder_id: value }) - .then(() => this.$emit('onSuccess')) - .catch((err) => this.$emit('onError', err.error.error)) + .then(() => this.$emit('success')) + .catch((err) => this.$emit('error', err.error.error)) }, }, } diff --git a/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue b/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue index 006edbb80..818de095e 100644 --- a/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue +++ b/src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue @@ -8,7 +8,7 @@