removed extra lines

Signed-off-by: Ishant <ishantgupta777@gmail.com>
This commit is contained in:
Ishant
2020-04-20 05:11:11 +05:30
parent a1cbd1047d
commit 49a8ca6f22

View File

@@ -189,6 +189,17 @@ export default {
actions.push({ actions.push({
action: () => { action: () => {
OC.dialogs.confirmDestructive(
t('deck', 'Are you sure you want to delete the board {title}? This will delete all the data of this board.', { title: this.board.title }),
t('deck', 'Delete the board?'),
{
type: OC.dialogs.YES_NO_BUTTONS,
confirm: t('deck', 'Delete'),
confirmClasses: 'error',
cancel: t('deck', 'Cancel'),
},
(result) => {
if (result) {
this.hideMenu() this.hideMenu()
this.loading = true this.loading = true
this.boardApi.deleteBoard(this.board) this.boardApi.deleteBoard(this.board)
@@ -199,6 +210,11 @@ export default {
this.$store.dispatch('removeBoard', this.board) this.$store.dispatch('removeBoard', this.board)
}, 7000) }, 7000)
}) })
}
},
true
)
}, },
icon: 'icon-delete', icon: 'icon-delete',
text: t('deck', 'Delete board'), text: t('deck', 'Delete board'),