gui: Display rescan button when out of sync and remove deprecated folder state

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4704
This commit is contained in:
Simon Frei 2018-01-27 09:10:11 +00:00 committed by Jakob Borg
parent 364f61bda6
commit ae760798e1
2 changed files with 1 additions and 5 deletions

View File

@ -439,7 +439,7 @@
<button type="button" class="btn btn-default btn-sm" ng-click="restoreVersions.show(folder.id)" ng-if="folder.versioning.type">
<span class="fa fa-undo"></span>&nbsp;<span translate>Versions</span>
</button>
<button type="button" class="btn btn-sm btn-default" ng-click="rescanFolder(folder.id)" ng-show="['idle', 'stopped', 'unshared'].indexOf(folderStatus(folder)) > -1">
<button type="button" class="btn btn-sm btn-default" ng-click="rescanFolder(folder.id)" ng-show="['idle', 'stopped', 'unshared', 'outofsync'].indexOf(folderStatus(folder)) > -1">
<span class="fa fa-refresh"></span>&nbsp;<span translate>Rescan</span>
</button>
<button type="button" class="btn btn-sm btn-default" ng-click="editFolder(folder)">

View File

@ -731,10 +731,6 @@ angular.module('syncthing.core')
return 'unknown';
}
if ($scope.model[folderCfg.id].invalid) {
return 'stopped';
}
var state = '' + $scope.model[folderCfg.id].state;
if (state === 'error') {
return 'stopped'; // legacy, the state is called "stopped" in the GUI