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 6627a82b9e
commit ccbb84c38f

View File

@@ -15,6 +15,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">
@@ -53,6 +54,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)
},