From 56879f1911d0bce00d92421e3381c849d48a5c1c Mon Sep 17 00:00:00 2001 From: Thaum Rystra Date: Thu, 28 May 2020 13:03:35 +0200 Subject: [PATCH] Removing a property in the character sheet tree now unselects that property --- .../creature/creatureProperties/CreaturePropertyDialog.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue b/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue index 0eeabd0c..fa69f25f 100644 --- a/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue +++ b/app/imports/ui/creature/creatureProperties/CreaturePropertyDialog.vue @@ -175,7 +175,11 @@ export default { }, remove(){ softRemoveProperty.call({_id: this._id}); - this.$store.dispatch('popDialogStack'); + if (this.embedded){ + this.$emit('removed'); + } else { + this.$store.dispatch('popDialogStack'); + } }, selectSubProperty(_id){ this.$store.commit('pushDialogStack', {