exclude deleted boards in the selection for target
Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
<h3>{{ t('deck', 'Move card to another board') }}</h3>
|
<h3>{{ t('deck', 'Move card to another board') }}</h3>
|
||||||
<Multiselect v-model="selectedBoard"
|
<Multiselect v-model="selectedBoard"
|
||||||
:placeholder="t('deck', 'Select a board')"
|
:placeholder="t('deck', 'Select a board')"
|
||||||
:options="boards"
|
:options="activeBoards"
|
||||||
:max-height="100"
|
:max-height="100"
|
||||||
label="title"
|
label="title"
|
||||||
@select="loadStacksFromBoard" />
|
@select="loadStacksFromBoard" />
|
||||||
@@ -133,6 +133,9 @@ export default {
|
|||||||
isCurrentUserAssigned() {
|
isCurrentUserAssigned() {
|
||||||
return this.card.assignedUsers.find((item) => item.type === 0 && item.participant.uid === getCurrentUser()?.uid)
|
return this.card.assignedUsers.find((item) => item.type === 0 && item.participant.uid === getCurrentUser()?.uid)
|
||||||
},
|
},
|
||||||
|
activeBoards() {
|
||||||
|
return this.$store.getters.boards.filter((item) => item.deletedAt === 0 && item.archived === false)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openCard() {
|
openCard() {
|
||||||
|
|||||||
Reference in New Issue
Block a user