From de1eb642857a361fb8faeba25ba854e65ff70724 Mon Sep 17 00:00:00 2001 From: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com> Date: Thu, 2 May 2024 20:42:03 +0200 Subject: [PATCH] Fixed action card not loading on action --- .../ui/properties/components/actions/ActionCard.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/imports/client/ui/properties/components/actions/ActionCard.vue b/app/imports/client/ui/properties/components/actions/ActionCard.vue index d64bb514..cdc56e37 100644 --- a/app/imports/client/ui/properties/components/actions/ActionCard.vue +++ b/app/imports/client/ui/properties/components/actions/ActionCard.vue @@ -106,7 +106,6 @@ import ActionConditionView from '/imports/client/ui/properties/components/action import AttributeConsumedView from '/imports/client/ui/properties/components/actions/AttributeConsumedView.vue'; import ItemConsumedView from '/imports/client/ui/properties/components/actions/ItemConsumedView.vue'; import PropertyIcon from '/imports/client/ui/properties/shared/PropertyIcon.vue'; -import RollPopup from '/imports/client/ui/components/RollPopup.vue'; import MarkdownText from '/imports/client/ui/components/MarkdownText.vue'; import CardHighlight from '/imports/client/ui/components/CardHighlight.vue'; import TreeNodeList from '/imports/client/ui/components/tree/TreeNodeList.vue'; @@ -121,7 +120,6 @@ export default { ItemConsumedView, MarkdownText, PropertyIcon, - RollPopup, CardHighlight, TreeNodeList, }, @@ -225,7 +223,12 @@ export default { this.$emit('click', e); }, doAction() { - doAction(this.model, this.$store, this.model._id); + this.doActionLoading = true; + doAction(this.model, this.$store, this.model._id).catch((e) => { + console.error(e); + }).finally(() => { + this.doActionLoading = false; + }); }, } }