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

@@ -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