Remove archive action from archived boards

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
Michael Weimann
2018-12-22 11:42:54 +01:00
parent 756b4ddcc2
commit d60ff00eec

View File

@@ -23,33 +23,38 @@
import store from './../store/main'
function boardActions(board) {
return [
{
action: () => {
},
icon: 'icon-edit',
text: t('deck', 'Edit board')
const actions = [{
action: () => {
},
{
icon: 'icon-edit',
text: t('deck', 'Edit board')
}]
if (!board.archived) {
actions.push({
action: function() {
store.dispatch('archiveBoard', board)
},
icon: 'icon-archive',
text: t('deck', 'Archive board')
})
}
actions.push({
action: () => {
},
{
action: () => {
},
icon: 'icon-delete',
text: t('deck', 'Delete board')
icon: 'icon-delete',
text: t('deck', 'Delete board')
})
actions.push({
action: () => {
},
{
action: () => {
},
icon: 'icon-settings',
text: t('deck', 'Board details')
}
]
icon: 'icon-settings',
text: t('deck', 'Board details')
})
return actions
}
/**