mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
Merge pull request #1927 from ralder/patch-1
fix disappeared status of folder after restart syncthing
This commit is contained in:
commit
8fb4ce6cad
@ -521,6 +521,11 @@ angular.module('syncthing.core')
|
|||||||
if ($scope.model[folderCfg.id].state == 'error') {
|
if ($scope.model[folderCfg.id].state == 'error') {
|
||||||
return 'stopped'; // legacy, the state is called "stopped" in the GUI
|
return 'stopped'; // legacy, the state is called "stopped" in the GUI
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// after restart syncthing process state may be empty
|
||||||
|
if (!$scope.model[folderCfg.id].state) {
|
||||||
|
return 'unknown';
|
||||||
|
}
|
||||||
|
|
||||||
return '' + $scope.model[folderCfg.id].state;
|
return '' + $scope.model[folderCfg.id].state;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user