Commit 9439631a authored by Nick Thomas's avatar Nick Thomas

Fix some syntax errors in api.js

parent 953b4b78
...@@ -170,8 +170,7 @@ const Api = { ...@@ -170,8 +170,7 @@ const Api = {
}, },
ldap_groups(query, provider, callback) { ldap_groups(query, provider, callback) {
const url = Api.buildUrl(this.ldapGroupsPath); const url = Api.buildUrl(this.ldapGroupsPath).replace(':provider', provider);
url = url.replace(':provider', provider);
return Api.wrapAjaxCall({ return Api.wrapAjaxCall({
url: url, url: url,
data: Object.assign({ data: Object.assign({
...@@ -183,7 +182,7 @@ const Api = { ...@@ -183,7 +182,7 @@ const Api = {
dataType: 'json' dataType: 'json'
}) })
.done(groups => callback(groups)); .done(groups => callback(groups));
} },
wrapAjaxCall(options) { wrapAjaxCall(options) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
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