Add UI bits for setting backgroundImage
This commit is contained in:
@@ -12,6 +12,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
$scope.subscription = {};
|
||||
$scope.notificationCount = 0;
|
||||
$scope.hideNavBarActions = $location.path() === '/logs';
|
||||
$scope.backgroundImageUrl = '';
|
||||
|
||||
$scope.reboot = {
|
||||
busy: false,
|
||||
@@ -131,6 +132,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
|
||||
$scope.config = Client.getConfig();
|
||||
|
||||
document.getElementById('mainContentContainer').style.backgroundImage = 'url("' + Client.getBackgroundImageUrl() + '")';
|
||||
|
||||
$scope.initialized = true;
|
||||
|
||||
if (Client.getConfig().mandatory2FA && !Client.getUserInfo().twoFactorAuthenticationEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user