If no appUrl is set yet, use fallback app icon
This commit is contained in:
@@ -137,9 +137,9 @@ function create() {
|
||||
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
|
||||
app.type = app.manifest.id === PROXY_APP_ID ? APP_TYPES.PROXIED : APP_TYPES.APP;
|
||||
app.iconUrl = app.iconUrl ? (origin + app.iconUrl + '?ts=' + (new Date(app.ts).getTime())) : null; // calculate full icon url with cache busting
|
||||
app.iconUrl = app.iconUrl ? (origin + app.iconUrl + '?ts=' + (new Date(app.ts).getTime())) : `${origin}/img/appicon_fallback.png`; // calculate full icon url with cache busting
|
||||
|
||||
// only fetch if we have permissions and a taskId is set/active
|
||||
// only fetch if we have permissions and a taskId is set/active
|
||||
if (!app.taskId || (app.accessLevel !== 'operator' && app.accessLevel !== 'admin')) {
|
||||
app.progress = 0;
|
||||
app.message = '';
|
||||
|
||||
Reference in New Issue
Block a user