small changes

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-08-14 10:14:49 +02:00
parent 1a917bb548
commit eda2922151

View File

@@ -40,7 +40,7 @@
</form> </form>
</transition> </transition>
<Actions v-if="canManage" :force-menu="true"> <Actions v-if="canManage" :force-menu="true">
<ActionButton icon="icon-archive" @click="modalShow=true"> <ActionButton icon="icon-archive" @click="modalArchivAllCardsShow=true">
{{ t('deck', 'Archive all cards') }} {{ t('deck', 'Archive all cards') }}
</ActionButton> </ActionButton>
<ActionButton icon="icon-delete" @click="deleteStack(stack)"> <ActionButton icon="icon-delete" @click="deleteStack(stack)">
@@ -54,14 +54,14 @@
</Actions> </Actions>
</div> </div>
<Modal v-if="modalShow" title="Archive all cards in this list" @close="modalShow=false"> <Modal v-if="modalArchivAllCardsShow" @close="modalArchivAllCardsShow=false">
<div class="modal__content"> <div class="modal__content">
<h3>Archive all cards in this list</h3> <h3>{{ t('deck', 'Archive all cards in this list') }}</h3>
<progress :value="archiveAllCardsProgress" :max="stackLen" /> <progress :value="archiveAllCardsProgress" :max="stackLen" />
<button class="primary" @click="archiveAllCardsFromStack(stack)"> <button class="primary" @click="archiveAllCardsFromStack(stack)">
{{ t('deck', 'Archive all cards') }} {{ t('deck', 'Archive all cards') }}
</button> </button>
<button @click="modalShow=false"> <button @click="modalArchivAllCardsShow=false">
{{ t('deck', 'Cancel') }} {{ t('deck', 'Cancel') }}
</button> </button>
</div> </div>
@@ -140,7 +140,7 @@ export default {
showAddCard: false, showAddCard: false,
stateCardCreating: false, stateCardCreating: false,
animate: false, animate: false,
modalShow: false, modalArchivAllCardsShow: false,
archiveAllCardsProgress: null, archiveAllCardsProgress: null,
stackLen: 0, stackLen: 0,
} }
@@ -205,7 +205,7 @@ export default {
this.archiveAllCardsProgress = index this.archiveAllCardsProgress = index
this.$store.dispatch('archiveUnarchiveCard', { ...card, archived: true }) this.$store.dispatch('archiveUnarchiveCard', { ...card, archived: true })
}) })
this.modalShow = false this.modalArchivAllCardsShow = false
}, },
startEditing(stack) { startEditing(stack) {
this.copiedStack = Object.assign({}, stack) this.copiedStack = Object.assign({}, stack)