diff --git a/src/CardCreateDialog.vue b/src/CardCreateDialog.vue index cd88375c6..113e6e867 100644 --- a/src/CardCreateDialog.vue +++ b/src/CardCreateDialog.vue @@ -168,6 +168,7 @@ export default { }, close() { + this.$emit('close') this.$root.$emit('close') }, async select() { diff --git a/src/components/Controls.vue b/src/components/Controls.vue index bcfbdba49..a6db277d0 100644 --- a/src/components/Controls.vue +++ b/src/components/Controls.vue @@ -25,6 +25,12 @@

{{ overviewName }}

+ + + {{ t('deck', 'Add card') }} + + +
@@ -206,11 +212,12 @@ import { mapState, mapGetters } from 'vuex' import { Actions, ActionButton, Popover, Avatar } from '@nextcloud/vue' import labelStyle from '../mixins/labelStyle' +import CardCreateDialog from '../CardCreateDialog' export default { name: 'Controls', components: { - Actions, ActionButton, Popover, Avatar, + Actions, ActionButton, Popover, Avatar, CardCreateDialog, }, mixins: [labelStyle], props: { @@ -233,6 +240,7 @@ export default { showArchived: false, isAddStackVisible: false, filter: { tags: [], users: [], due: '', unassigned: false }, + showAddCardModal: false, } }, @@ -318,6 +326,12 @@ export default { this.$store.dispatch('setFilter', { ...filterReset }) this.filter = filterReset }, + clickShowAddCardModel() { + this.showAddCardModal = true + }, + clickHideAddCardModel() { + this.showAddCardModal = false + }, }, }