mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-28 19:40:25 +08:00
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
22 lines
482 B
JavaScript
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;
|
|
};
|
|
});
|