Convert Eventlogs to vue

This commit is contained in:
Johannes Zellner
2025-01-25 17:09:53 +01:00
parent b43fa38350
commit f3e2f10478
9 changed files with 726 additions and 17 deletions
+2 -5
View File
@@ -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;