add card button in card overview
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
committed by
Julius Härtl
parent
bdd9b6d05e
commit
6e1e281638
@@ -168,6 +168,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
|
this.$emit('close')
|
||||||
this.$root.$emit('close')
|
this.$root.$emit('close')
|
||||||
},
|
},
|
||||||
async select() {
|
async select() {
|
||||||
|
|||||||
@@ -25,6 +25,12 @@
|
|||||||
<div v-if="overviewName" class="board-title">
|
<div v-if="overviewName" class="board-title">
|
||||||
<div class="board-bullet icon-calendar-dark" />
|
<div class="board-bullet icon-calendar-dark" />
|
||||||
<h2>{{ overviewName }}</h2>
|
<h2>{{ overviewName }}</h2>
|
||||||
|
<Actions>
|
||||||
|
<ActionButton icon="icon-add" @click="clickShowAddCardModel">
|
||||||
|
{{ t('deck', 'Add card') }}
|
||||||
|
</ActionButton>
|
||||||
|
</Actions>
|
||||||
|
<CardCreateDialog v-if="showAddCardModal" @close="clickHideAddCardModel" />
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="board" class="board-title">
|
<div v-else-if="board" class="board-title">
|
||||||
<div :style="{backgroundColor: '#' + board.color}" class="board-bullet" />
|
<div :style="{backgroundColor: '#' + board.color}" class="board-bullet" />
|
||||||
@@ -206,11 +212,12 @@
|
|||||||
import { mapState, mapGetters } from 'vuex'
|
import { mapState, mapGetters } from 'vuex'
|
||||||
import { Actions, ActionButton, Popover, Avatar } from '@nextcloud/vue'
|
import { Actions, ActionButton, Popover, Avatar } from '@nextcloud/vue'
|
||||||
import labelStyle from '../mixins/labelStyle'
|
import labelStyle from '../mixins/labelStyle'
|
||||||
|
import CardCreateDialog from '../CardCreateDialog'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Controls',
|
name: 'Controls',
|
||||||
components: {
|
components: {
|
||||||
Actions, ActionButton, Popover, Avatar,
|
Actions, ActionButton, Popover, Avatar, CardCreateDialog,
|
||||||
},
|
},
|
||||||
mixins: [labelStyle],
|
mixins: [labelStyle],
|
||||||
props: {
|
props: {
|
||||||
@@ -233,6 +240,7 @@ export default {
|
|||||||
showArchived: false,
|
showArchived: false,
|
||||||
isAddStackVisible: false,
|
isAddStackVisible: false,
|
||||||
filter: { tags: [], users: [], due: '', unassigned: false },
|
filter: { tags: [], users: [], due: '', unassigned: false },
|
||||||
|
showAddCardModal: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -318,6 +326,12 @@ export default {
|
|||||||
this.$store.dispatch('setFilter', { ...filterReset })
|
this.$store.dispatch('setFilter', { ...filterReset })
|
||||||
this.filter = filterReset
|
this.filter = filterReset
|
||||||
},
|
},
|
||||||
|
clickShowAddCardModel() {
|
||||||
|
this.showAddCardModal = true
|
||||||
|
},
|
||||||
|
clickHideAddCardModel() {
|
||||||
|
this.showAddCardModal = false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user