Only offer stack creation in emptycontent with proper permissions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-06-25 11:06:26 +02:00
committed by backportbot[bot]
parent cb1314f067
commit c0fad295b5

View File

@@ -32,7 +32,7 @@
</div> </div>
<EmptyContent v-else-if="isEmpty" key="empty" icon="icon-deck"> <EmptyContent v-else-if="isEmpty" key="empty" icon="icon-deck">
{{ t('deck', 'No lists available') }} {{ t('deck', 'No lists available') }}
<template #desc> <template v-if="canManage" #desc>
{{ t('deck', 'Create a new list to add cards to this board') }} {{ t('deck', 'Create a new list to add cards to this board') }}
<form @submit.prevent="addNewStack()"> <form @submit.prevent="addNewStack()">
<input id="new-stack-input-main" <input id="new-stack-input-main"
@@ -110,6 +110,7 @@ export default {
}), }),
...mapGetters([ ...mapGetters([
'canEdit', 'canEdit',
'canManage',
]), ]),
stacksByBoard() { stacksByBoard() {
return this.$store.getters.stacksByBoard(this.board.id) return this.$store.getters.stacksByBoard(this.board.id)