Merge pull request #7039 from JamBalaya56562/fix/remove-restore-cancel-button
Remove redundant cancel button from restore progress
This commit is contained in:
@@ -3,16 +3,12 @@ backupApp.directive('waitArea', function() {
|
||||
restrict: 'E',
|
||||
scope: {
|
||||
taskid: '=taskid',
|
||||
text: '=text',
|
||||
allowCancel: '=allowCancel'
|
||||
text: '=text'
|
||||
},
|
||||
templateUrl: 'templates/waitarea.html',
|
||||
controller: function($scope, ServerStatus, AppService) {
|
||||
controller: function($scope, ServerStatus) {
|
||||
$scope.ServerStatus = ServerStatus;
|
||||
$scope.serverstate = ServerStatus.watch($scope);
|
||||
$scope.cancelTask = function() {
|
||||
AppService.post('/task/' + $scope.taskid + '/stop');
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
</div>
|
||||
|
||||
<div ng-show="connecting == true && taskid != null">
|
||||
<wait-area taskid="taskid" text="ConnectionProgress" allow-cancel="true"></wait-area>
|
||||
<wait-area taskid="taskid" text="ConnectionProgress"></wait-area>
|
||||
</div>
|
||||
|
||||
<div ng-show="connecting == true && taskid == null">
|
||||
|
||||
@@ -15,8 +15,4 @@
|
||||
{{'Server is currently paused,' | translate}} <a style="cursor: pointer" ng-click="ServerStatus.resume()" translate>resume now</a>
|
||||
</div>
|
||||
|
||||
<div ng-show="allowCancel">
|
||||
<a href class="button" ng-click="cancelTask()" translate>Cancel</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user