Commit 280b4c14 authored by Clement Ho's avatar Clement Ho

[skip ci] move endpoint to handler

parent 88eff9da
...@@ -46,6 +46,8 @@ require('./sidebar/remove_issue'); ...@@ -46,6 +46,8 @@ require('./sidebar/remove_issue');
this.issue = this.detail.issue; this.issue = this.detail.issue;
this.list = this.detail.list; this.list = this.detail.list;
this.endpoint = document.querySelector('.js-issue-board-sidebar').dataset.issueUpdate;
}, },
deep: true deep: true
}, },
...@@ -81,8 +83,7 @@ require('./sidebar/remove_issue'); ...@@ -81,8 +83,7 @@ require('./sidebar/remove_issue');
saveUsers () { saveUsers () {
this.loadingAssignees = true; this.loadingAssignees = true;
const endpoint = document.querySelector('.js-issue-board-sidebar').dataset.issueUpdate; gl.issueBoards.BoardsStore.detail.issue.update(this.endpoint)
gl.issueBoards.BoardsStore.detail.issue.update(endpoint)
.then((response) => { .then((response) => {
this.loadingAssignees = false; this.loadingAssignees = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment