fix: clear selected stack when selected board changed

Signed-off-by: Luka Trovic <luka@nextcloud.com>

[skip ci]
This commit is contained in:
Luka Trovic
2025-04-11 16:53:50 +02:00
committed by backportbot[bot]
parent a14e5685a3
commit dd0818382a

View File

@@ -19,6 +19,7 @@
:input-label="t('deck', 'Select a list')"
:options="stacksFromBoard"
:max-height="100"
data-cy="select-stack"
label="title" />
<button :disabled="!isBoardAndStackChoosen" class="primary" @click="moveCard">
@@ -57,6 +58,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)
},