loading indicator

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-09-17 12:37:43 +02:00
parent df0a8515a3
commit 31ae00708d

View File

@@ -133,8 +133,14 @@ export default {
actions.push({
action: () => {
this.hideMenu()
// this.boardApi.cloneBoard(this.board)
this.$store.dispatch('cloneBoard', this.board)
this.loading = true
this.$store.dispatch('cloneBoard', this.board).then((newBoard) => {
this.loading = false
this.editTitle = this.board.title
this.editColor = '#' + this.board.color
this.editing = true
})
},
icon: 'icon-clone',
text: t('deck', 'Clone board')