summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/models
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-12-15 02:31:14 -0600
committerEric Eastwood <contact@ericeastwood.com>2018-01-02 18:01:42 -0600
commit4ffc863afdfd6f350a7c457247d2d0c7b71402b4 (patch)
treeecf1a520a35264a3fed3f8e5322777f6b6dac924 /app/assets/javascripts/boards/models
parentac9e65a9b9fdc8964f4891eedd51ed57aa5ee22b (diff)
downloadgitlab-ce-4ffc863afdfd6f350a7c457247d2d0c7b71402b4.tar.gz
Switch boards to Axios
Diffstat (limited to 'app/assets/javascripts/boards/models')
-rw-r--r--app/assets/javascripts/boards/models/list.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/boards/models/list.js b/app/assets/javascripts/boards/models/list.js
index df2809e1805..e210d69895e 100644
--- a/app/assets/javascripts/boards/models/list.js
+++ b/app/assets/javascripts/boards/models/list.js
@@ -40,7 +40,7 @@ class List {
save () {
return gl.boardService.createList(this.label.id)
- .then(resp => resp.json())
+ .then(res => res.data)
.then((data) => {
this.id = data.id;
this.type = data.list_type;
@@ -90,7 +90,7 @@ class List {
}
return gl.boardService.getIssuesForList(this.id, data)
- .then(resp => resp.json())
+ .then(res => res.data)
.then((data) => {
this.loading = false;
this.issuesSize = data.size;
@@ -108,7 +108,7 @@ class List {
this.issuesSize += 1;
return gl.boardService.newIssue(this.id, issue)
- .then(resp => resp.json())
+ .then(res => res.data)
.then((data) => {
issue.id = data.id;
issue.iid = data.iid;