exclude deleted boards in the selection for target

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2021-12-30 11:05:56 +01:00
committed by backportbot[bot]
parent 9c406a34c5
commit c2546206a3

View File

@@ -58,7 +58,7 @@
<h3>{{ t('deck', 'Move card to another board') }}</h3>
<Multiselect v-model="selectedBoard"
:placeholder="t('deck', 'Select a board')"
:options="boards"
:options="activeBoards"
:max-height="100"
label="title"
@select="loadStacksFromBoard" />
@@ -129,6 +129,9 @@ export default {
isCurrentUserAssigned() {
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: {
openCard() {