From bd00f034110c96281b137cf073bd48cec731d5e4 Mon Sep 17 00:00:00 2001 From: jedi Date: Tue, 5 Nov 2024 23:32:53 +0100 Subject: [PATCH] use an 'AsyncButton' that waits for completion of an async onClick handler for mail replies and comments in tickets --- web/src/components/Timeline.vue | 11 +++--- web/src/components/inputs/AsyncButton.vue | 47 +++++++++++++++++++++++ 2 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 web/src/components/inputs/AsyncButton.vue diff --git a/web/src/components/Timeline.vue b/web/src/components/Timeline.vue index 97c8463..2cf8b97 100644 --- a/web/src/components/Timeline.vue +++ b/web/src/components/Timeline.vue @@ -40,10 +40,10 @@
- +
@@ -58,10 +58,10 @@
- +
@@ -77,11 +77,12 @@ import {mapActions, mapGetters} from "vuex"; import TimelineAssignment from "@/components/TimelineAssignment.vue"; import TimelineRelatedItem from "@/components/TimelineRelatedItem.vue"; import TimelineShippingVoucher from "@/components/TimelineShippingVoucher.vue"; +import AsyncButton from "@/components/inputs/AsyncButton.vue"; export default { name: 'Timeline', components: { - TimelineShippingVoucher, + TimelineShippingVoucher, AsyncButton, TimelineRelatedItem, TimelineAssignment, TimelineStateChange, TimelineComment, TimelineMail }, props: { diff --git a/web/src/components/inputs/AsyncButton.vue b/web/src/components/inputs/AsyncButton.vue new file mode 100644 index 0000000..a3c1712 --- /dev/null +++ b/web/src/components/inputs/AsyncButton.vue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file