fix: clear selected stack when selected board changed
Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
committed by
backportbot[bot]
parent
0a415b97df
commit
91b9b8804e
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user