Welcome to mirror list, hosted at ThFree Co, Russian Federation.

BrandingService.js « services « scripts « ngax « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eaa177b1ce104e14ad79ea0d3b60c4b2e121be78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
backupApp.service('BrandingService', function() {

    var state = { 'appName': 'Duplicati', 'appSubtitle': null };
    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;
    };
});