BigW Consortium Gitlab

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

import Vue from 'vue';
4

5 6
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
7

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

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