Convert Eventlogs to vue
This commit is contained in:
@@ -122,10 +122,7 @@ function create(origin, accessToken, id) {
|
||||
error = e;
|
||||
}
|
||||
|
||||
if (error || result.status !== 200) {
|
||||
console.error('Failed to list apps.', error || result.status);
|
||||
return [];
|
||||
}
|
||||
if (error || result.status !== 200) return [error || result];
|
||||
|
||||
for (const app of result.body.apps) {
|
||||
app.ssoAuth = app.sso && (app.manifest.addons['ldap'] || app.manifest.addons['oidc'] || app.manifest.addons['proxyAuth']); // checking app.sso first ensures app.manifest.addons is not null
|
||||
@@ -150,7 +147,7 @@ function create(origin, accessToken, id) {
|
||||
}
|
||||
}
|
||||
|
||||
return result.body.apps;
|
||||
return [null, result.body.apps];
|
||||
},
|
||||
async get(id) {
|
||||
let error, result;
|
||||
|
||||
Reference in New Issue
Block a user