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

waitArea.js « directives « scripts « ngax « webroot « Server « Duplicati - github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cb0d4cb9d3740c707e068899623d63f96cf93046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
backupApp.directive('waitArea', function() {
  return {
    restrict: 'E',
    scope: {
        taskid: '=taskid',
        text: '=text',
        allowCancel: '=allowCancel'
    },
    templateUrl: 'templates/waitarea.html',
    controller: function($scope, ServerStatus, AppService) {
        $scope.ServerStatus = ServerStatus;
        $scope.serverstate = ServerStatus.watch($scope);
        $scope.cancelTask = function() {
            AppService.post('/task/' + $scope.taskid + '/stop');
        };
    }
  }
});