Revert "dashboard: first use profile background if not exist try branding background"
This reverts commit 8db6da2de9.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user