Compare commits
1 Commits
removeComm
...
enh/unshar
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18621caa60 |
@@ -236,6 +236,18 @@ export default {
|
||||
text: t('deck', 'Board details'),
|
||||
})
|
||||
|
||||
if (this.board.shared) {
|
||||
actions.push({
|
||||
action: () => {
|
||||
this.hideMenu()
|
||||
this.loading = true
|
||||
this.$store.dispatch('unshareBoard', this.board)
|
||||
},
|
||||
icon: 'icon-delete',
|
||||
text: t('deck', 'Unshare board'),
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return actions
|
||||
|
||||
@@ -417,5 +417,11 @@ export default new Vuex.Store({
|
||||
dispatch('loadBoardById', acl.boardId)
|
||||
})
|
||||
},
|
||||
unshareBoard({ commit }, board) {
|
||||
apiClient.unshareBoard(board)
|
||||
.then((board) => {
|
||||
commit('removeBoard', board)
|
||||
})
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user