From 976298c7d6e128027a9366046bd83c3f9ceab3a7 Mon Sep 17 00:00:00 2001 From: sephrat <34862846+sephrat@users.noreply.github.com> Date: Thu, 17 Jun 2021 17:10:49 +0200 Subject: [PATCH] Reset disabled steps when switching recipe (#537) --- frontend/src/components/Recipe/Parts/Instructions.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/components/Recipe/Parts/Instructions.vue b/frontend/src/components/Recipe/Parts/Instructions.vue index 2f6d4e019a66..35f5dd66d291 100644 --- a/frontend/src/components/Recipe/Parts/Instructions.vue +++ b/frontend/src/components/Recipe/Parts/Instructions.vue @@ -91,6 +91,15 @@ export default { mounted() { this.showTitleEditor = this.value.map(x => this.validateTitle(x.title)); }, + + watch: { + value: { + handler() { + this.disabledSteps = []; + } + } + }, + methods: { generateKey(item, index) { return utils.generateUniqueKey(item, index);