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

26 lines
495 B
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +05:30
/* eslint-disable comma-dangle, no-alert */
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2017-08-17 22:00:37 +05:30
import Vue from 'vue';
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.BoardDelete = Vue.extend({
props: {
2018-11-08 19:23:39 +05:30
list: {
type: Object,
default: () => ({}),
},
2017-08-17 22:00:37 +05:30
},
methods: {
deleteBoard () {
$(this.$el).tooltip('hide');
2018-11-08 19:23:39 +05:30
if (window.confirm('Are you sure you want to delete this list?')) {
2017-08-17 22:00:37 +05:30
this.list.destroy();
}
}
}
});