22 lines
482 B
JavaScript
22 lines
482 B
JavaScript
/* eslint-disable comma-dangle, space-before-function-paren, no-alert */
|
|
/* global Vue */
|
|
|
|
(() => {
|
|
window.gl = window.gl || {};
|
|
window.gl.issueBoards = window.gl.issueBoards || {};
|
|
|
|
gl.issueBoards.BoardDelete = Vue.extend({
|
|
props: {
|
|
list: Object
|
|
},
|
|
methods: {
|
|
deleteBoard () {
|
|
$(this.$el).tooltip('hide');
|
|
|
|
if (confirm('Are you sure you want to delete this list?')) {
|
|
this.list.destroy();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
})();
|