summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/api.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-01-29 11:42:27 +0000
committerPhil Hughes <me@iamphill.com>2018-01-30 09:12:58 +0000
commit06cd08ebadd3fd3571be79df6f50cffdf6247371 (patch)
tree3ad695fefedbc560cce32b331b885dfdd2cfcfe7 /app/assets/javascripts/api.js
parente0bc7e5f9cda721fff329f3dff31f6fad611762d (diff)
downloadgitlab-ce-06cd08ebadd3fd3571be79df6f50cffdf6247371.tar.gz
more EE backports
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r--app/assets/javascripts/api.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js
index acfee3fe13e..bd2b9cc2976 100644
--- a/app/assets/javascripts/api.js
+++ b/app/assets/javascripts/api.js
@@ -39,7 +39,11 @@ const Api = {
per_page: 20,
}, options),
})
- .then(({ data }) => callback(data));
+ .then(({ data }) => {
+ callback(data);
+
+ return data;
+ });
},
// Return namespaces list. Filtered by query
@@ -70,7 +74,11 @@ const Api = {
return axios.get(url, {
params: Object.assign(defaults, options),
})
- .then(({ data }) => callback(data));
+ .then(({ data }) => {
+ callback(data);
+
+ return data;
+ });
},
// Return single project