debian-mirror-gitlab/app/assets/javascripts/boards/components/board_delete.js
2018-11-08 19:23:39 +05:30

25 lines
495 B
JavaScript

/* eslint-disable comma-dangle, no-alert */
import $ from 'jquery';
import Vue from 'vue';
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.BoardDelete = Vue.extend({
props: {
list: {
type: Object,
default: () => ({}),
},
},
methods: {
deleteBoard () {
$(this.$el).tooltip('hide');
if (window.confirm('Are you sure you want to delete this list?')) {
this.list.destroy();
}
}
}
});