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

21 lines
397 B
JavaScript

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