summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/components/board_delete.js.es6
blob: c45e1926c5ca6f87bc7afff6175b6323824365ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* eslint-disable */
(() => {
  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();
        }
      }
    }
  });
})();