summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/components/board_new_issue.js.es6
blob: 057844f3ebb436cc3988905cf607d7f28bbf4d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(() => {
  window.gl = window.gl || {};

  gl.issueBoards.BoardNewIssue = Vue.extend({
    props: {
      showIssueForm: Boolean
    },
    data() {
      return {
        title: ''
      };
    },
    methods: {
      submit(e) {
        e.preventDefault();

        this.title = '';
      },
      cancel() {
        this.showIssueForm = false;
      }
    }
  });
})();