minor errata

This commit is contained in:
Jörn-Michael Miehe 2019-05-27 13:51:24 +02:00
parent f5425829dd
commit 9b8393c779
4 changed files with 66 additions and 57 deletions

View file

@ -205,6 +205,7 @@ export default class {
count: elements[element] count: elements[element]
}) })
retval = retval.filter(element => element.count > 0)
retval.sort((element_l, element_r) => element_r.count - element_l.count) retval.sort((element_l, element_r) => element_r.count - element_l.count)
return retval return retval

View file

@ -15,11 +15,12 @@
</v-layout> </v-layout>
</template> </template>
<v-alert v-if="!editing" :value="deck.note" type="info"> <template v-if="!editing">
<v-alert :value="deck.note" type="info">
{{ deck.note }} {{ deck.note }}
</v-alert> </v-alert>
<v-container v-if="!editing" style="position: relative" grid-list-md fluid> <v-container style="position: relative" grid-list-md fluid>
<v-layout row wrap> <v-layout row wrap>
<v-flex v-for="part in deck.parts()" :key="part.heading" xs12 sm6 md4> <v-flex v-for="part in deck.parts()" :key="part.heading" xs12 sm6 md4>
<v-card> <v-card>
@ -41,9 +42,11 @@
</v-btn> </v-btn>
<v-dialog v-model="deleting" persistent> <v-dialog v-model="deleting" persistent>
<v-btn fab absolute bottom left slot="activator"> <template v-slot:activator="{ on }">
<v-btn fab absolute bottom left v-on="on">
<v-icon>delete</v-icon> <v-icon>delete</v-icon>
</v-btn> </v-btn>
</template>
<v-card> <v-card>
<v-card-title class="headline"> <v-card-title class="headline">
@ -51,7 +54,8 @@
</v-card-title> </v-card-title>
<v-card-text> <v-card-text>
Are you sure you want to delete this deck? This cannot be undone. Are you sure you want to delete this deck? This cannot be
undone.
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
@ -75,6 +79,7 @@
</v-dialog> </v-dialog>
</v-layout> </v-layout>
</v-container> </v-container>
</template>
<DeckEditor v-if="editing" :deck="deck" @save="save_deck"> <DeckEditor v-if="editing" :deck="deck" @save="save_deck">
<v-btn color="error" @click.native="editing = false"> <v-btn color="error" @click.native="editing = false">

View file

@ -67,6 +67,7 @@ export default {
result.push(deck) result.push(deck)
} }
result.sort((deck_l, deck_r) => deck_l.name.localeCompare(deck_r.name))
return result return result
} }
}, },

View file

@ -1,8 +1,10 @@
<template> <template>
<v-dialog v-model="dialog"> <v-dialog v-model="dialog">
<v-btn flat slot="activator"> <template v-slot:activator="{ on }">
<v-btn flat v-on="on">
{{ buttonText }} {{ buttonText }}
</v-btn> </v-btn>
</template>
<v-card> <v-card>
<v-snackbar <v-snackbar