From 1a917bb548580ed69d03ab3cab67ad22551b79cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Wed, 13 May 2020 12:12:25 +0200 Subject: [PATCH] now with a nice modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/components/board/Stack.vue | 52 ++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index d07ba66ff..ce500a06f 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -40,12 +40,12 @@ + + {{ t('deck', 'Archive all cards') }} + {{ t('deck', 'Delete list') }} - - {{ t('deck', 'Archive all cards in this list') }} - @@ -54,6 +54,19 @@ + + + +
{ + + this.stackLen = this.cardsByStack.length + this.cardsByStack.forEach((card, index) => { + this.archiveAllCardsProgress = index this.$store.dispatch('archiveUnarchiveCard', { ...card, archived: true }) }) + this.modalShow = false }, startEditing(stack) { this.copiedStack = Object.assign({}, stack) @@ -307,4 +328,25 @@ export default { height: 0px; } + .modal__content { + width: 25vw; + min-width: 250px; + min-height: 100px; + text-align: center; + margin: 20px 20px 20px 20px; + + .multiselect { + margin-bottom: 10px; + } + } + + .modal__content button { + float: right; + } + + progress { + margin-top: 3px; + margin-bottom: 30px; + } +