mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
gui: Hide download progress legend when download progress is disabled
This commit is contained in:
parent
5caf9bfc18
commit
bc371eacf6
@ -2877,6 +2877,13 @@ angular.module('syncthing.core')
|
||||
});
|
||||
};
|
||||
|
||||
$scope.downloadProgressEnabled = function() {
|
||||
return $scope.config.options &&
|
||||
$scope.config.options.progressUpdateIntervalS > 0 &&
|
||||
$scope.folders[$scope.neededFolder] &&
|
||||
$scope.folders[$scope.neededFolder].type != 'receiveencrypted';
|
||||
}
|
||||
|
||||
$scope.showFailed = function (folder) {
|
||||
$scope.failed.folder = folder;
|
||||
$scope.failed = $scope.refreshFailed(1, 10);
|
||||
|
@ -2,15 +2,17 @@
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-success" style="width: 20%"><span translate class="show">Reused</span></div>
|
||||
<div class="progress-bar" style="width: 20%"><span translate class="show">Copied from original</span></div>
|
||||
<div class="progress-bar progress-bar-info" style="width: 20%"><span translate class="show">Copied from elsewhere</span></div>
|
||||
<div class="progress-bar progress-bar-warning" style="width: 20%"><span translate class="show">Downloaded</span></div>
|
||||
<div class="progress-bar progress-bar-danger" style="width: 20%"><span translate class="show">Downloading</span></div>
|
||||
</div>
|
||||
<div id="download-legend" ng-if="downloadProgressEnabled()">
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-success" style="width: 20%"><span translate class="show">Reused</span></div>
|
||||
<div class="progress-bar" style="width: 20%"><span translate class="show">Copied from original</span></div>
|
||||
<div class="progress-bar progress-bar-info" style="width: 20%"><span translate class="show">Copied from elsewhere</span></div>
|
||||
<div class="progress-bar progress-bar-warning" style="width: 20%"><span translate class="show">Downloaded</span></div>
|
||||
<div class="progress-bar progress-bar-danger" style="width: 20%"><span translate class="show">Downloading</span></div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<table class="table table-striped table-condensed">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user