fix: clear selected stack when selected board changed

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2025-04-11 16:53:50 +02:00
committed by backportbot[bot]
parent 0a415b97df
commit 91b9b8804e
2 changed files with 13 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
:input-label="t('deck', 'Select a list')"
:options="stacksFromBoard"
:max-height="100"
data-cy="select-stack"
label="title" />
</div>
<template #actions>
@@ -59,6 +60,15 @@ export default {
return !(this.selectedBoard === '' || this.selectedStack === '')
},
},
watch: {
selectedBoard: {
immediate: true,
handler() {
this.selectedStack = ''
this.stacksFromBoard = []
},
},
},
mounted() {
subscribe('deck:card:show-move-dialog', this.openModal)
},