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

This reverts commit 8db6da2de9.
This commit is contained in:
Johannes Zellner
2024-04-06 10:00:16 +02:00
parent 91d9f66eb8
commit 32d9490856
4 changed files with 23 additions and 39 deletions
+5 -1
View File
@@ -790,7 +790,6 @@ 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);
@@ -800,6 +799,11 @@ 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();