@@ -133,8 +133,14 @@ export default {
|
|||||||
actions.push({
|
actions.push({
|
||||||
action: () => {
|
action: () => {
|
||||||
this.hideMenu()
|
this.hideMenu()
|
||||||
// this.boardApi.cloneBoard(this.board)
|
this.loading = true
|
||||||
this.$store.dispatch('cloneBoard', this.board)
|
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',
|
icon: 'icon-clone',
|
||||||
text: t('deck', 'Clone board')
|
text: t('deck', 'Clone board')
|
||||||
|
|||||||
Reference in New Issue
Block a user