diff --git a/dashboard/src/models/AppsModel.js b/dashboard/src/models/AppsModel.js index 77691053f..0ab03a794 100644 --- a/dashboard/src/models/AppsModel.js +++ b/dashboard/src/models/AppsModel.js @@ -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 = '';