duplicati/Duplicati/Server/webroot/ngax/scripts/services/BrandingService.js
Kenneth Skovhede e4d8058cd3 Rewrote parts of the user interface.
This adds landing pages to restore and add, as requested in #2282 and #2293.
Added the app icon, and re-arranged the text as requested in #2286
2017-02-07 21:51:14 +01:00

22 lines
482 B
JavaScript

backupApp.service('BrandingService', function() {
var state = {
'appName': 'Duplicati',
'appSubtitle': null,
'appLogoPath': '../img/logo.png'
};
this.state = state;
this.watch = function(scope, m) {
scope.$on('brandingservicechanged', function() {
if (m) m();
$timeout(function() {
scope.$digest();
});
});
if (m) $timeout(m);
return state;
};
});