debian-mirror-gitlab/app/assets/javascripts/boards/components/board_delete.js.es6

20 lines
391 B
JavaScript
Raw Normal View History

2016-09-13 17:45:13 +05:30
(() => {
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();
}
}
}
});
})();