From 797259cc9df220ab8136679b1d33e9bce67a087c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 20 Jan 2025 01:58:17 +0200 Subject: [PATCH] animation fix --- src/components/status_action_buttons/action_button.js | 8 +++++++- src/components/status_action_buttons/action_button.vue | 3 ++- .../status_action_buttons/status_action_buttons.js | 7 ------- .../status_action_buttons/status_action_buttons.vue | 2 -- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index 193a96ee9..4dc5f1bb3 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -62,7 +62,6 @@ export default { 'extra', 'status', 'funcArg', - 'animationState', 'getClass', 'getComponent', 'doAction', @@ -73,6 +72,9 @@ export default { EmojiPicker, Popover }, + data: () => ({ + animationState: false + }), computed: { buttonClass () { return [ @@ -116,7 +118,11 @@ export default { if (button.name === 'emoji') { this.$refs.picker.showPicker() } else { + this.animationState = true this.getComponent(button) === 'button' && this.doAction(button) + setTimeout(() => { + this.animationState = false + }, 500) close() } } diff --git a/src/components/status_action_buttons/action_button.vue b/src/components/status_action_buttons/action_button.vue index b9dca8818..0e409afb8 100644 --- a/src/components/status_action_buttons/action_button.vue +++ b/src/components/status_action_buttons/action_button.vue @@ -19,7 +19,8 @@