archived cards adjustments
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
@@ -26,6 +26,9 @@
|
|||||||
<div v-if="board" class="board-title">
|
<div v-if="board" class="board-title">
|
||||||
<div :style="{backgroundColor: '#' + board.color}" class="board-bullet" />
|
<div :style="{backgroundColor: '#' + board.color}" class="board-bullet" />
|
||||||
<h2><a href="#">{{ board.title }}</a></h2>
|
<h2><a href="#">{{ board.title }}</a></h2>
|
||||||
|
<p v-if="showArchived">
|
||||||
|
({{ t('deck', 'Archived cards') }})
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="board" class="board-actions">
|
<div v-if="board" class="board-actions">
|
||||||
<div v-if="canManage" id="stack-add" v-click-outside="hideAddStack">
|
<div v-if="canManage" id="stack-add" v-click-outside="hideAddStack">
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
{{ t('deck', 'Delete list') }}
|
{{ t('deck', 'Delete list') }}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
</Actions>
|
</Actions>
|
||||||
<Actions v-if="canEdit">
|
<Actions v-if="canEdit && !showArchived">
|
||||||
<ActionButton icon="icon-add" @click="showAddCard=true">
|
<ActionButton icon="icon-add" @click="showAddCard=true">
|
||||||
{{ t('deck', 'Add card') }}
|
{{ t('deck', 'Add card') }}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters, mapState } from 'vuex'
|
||||||
import { Container, Draggable } from 'vue-smooth-dnd'
|
import { Container, Draggable } from 'vue-smooth-dnd'
|
||||||
import { Actions, ActionButton } from '@nextcloud/vue'
|
import { Actions, ActionButton } from '@nextcloud/vue'
|
||||||
import CardItem from '../cards/CardItem'
|
import CardItem from '../cards/CardItem'
|
||||||
@@ -121,6 +121,9 @@ export default {
|
|||||||
'canManage',
|
'canManage',
|
||||||
'canEdit',
|
'canEdit',
|
||||||
]),
|
]),
|
||||||
|
...mapState({
|
||||||
|
showArchived: state => state.showArchived,
|
||||||
|
}),
|
||||||
cardsByStack() {
|
cardsByStack() {
|
||||||
return this.$store.getters.cardsByStack(this.stack.id)
|
return this.$store.getters.cardsByStack(this.stack.id)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user