BigW Consortium Gitlab

board_delete.js.es6 482 Bytes
Newer Older
1 2 3
/* eslint-disable comma-dangle, space-before-function-paren, no-alert */
/* global Vue */

Phil Hughes committed
4
(() => {
5 6 7 8
  window.gl = window.gl || {};
  window.gl.issueBoards = window.gl.issueBoards || {};

  gl.issueBoards.BoardDelete = Vue.extend({
9 10 11
    props: {
      list: Object
    },
Phil Hughes committed
12
    methods: {
13
      deleteBoard () {
14
        $(this.$el).tooltip('hide');
Phil Hughes committed
15 16

        if (confirm('Are you sure you want to delete this list?')) {
17
          this.list.destroy();
Phil Hughes committed
18 19 20 21
        }
      }
    }
  });
Phil Hughes committed
22
})();