dashboard: first use profile background if not exist try branding background

This commit is contained in:
Johannes Zellner
2024-04-05 17:11:37 +02:00
parent 544b8180b2
commit 8db6da2de9
4 changed files with 39 additions and 23 deletions
+1 -5
View File
@@ -790,6 +790,7 @@ app.controller('MainController', ['$scope', '$route', '$timeout', '$location', '
Client.refreshProfile.bind(Client),
Client.refreshConfig.bind(Client),
Client.refreshAvailableLanguages.bind(Client),
Client.refreshBranding.bind(Client),
Client.refreshInstalledApps.bind(Client)
], function (error) {
if (error) return Client.initError(error, init);
@@ -799,11 +800,6 @@ app.controller('MainController', ['$scope', '$route', '$timeout', '$location', '
$scope.config = Client.getConfig();
if (Client.getUserInfo().hasBackgroundImage) {
document.getElementById('mainContentContainer').style.backgroundImage = 'url("' + Client.getBackgroundImageUrl() + '")';
document.getElementById('mainContentContainer').classList.add('has-background');
}
$scope.initialized = true;
redirectOnMandatory2FA();