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