From 6e1e2816386dc6ed603147dceabdf768f8ccf214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Thu, 4 Mar 2021 11:22:26 +0100 Subject: [PATCH] add card button in card overview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/CardCreateDialog.vue | 1 + src/components/Controls.vue | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) 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 + }, }, }