mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-06 08:40:43 +00:00
fix disappeared status of folder after restart syncthing
sometimes after restart process syncthing '/rest/db/status' for folder may return data with 'state' = empty string
This commit is contained in:
parent
5c49b93c67
commit
7d1250620e
@ -522,6 +522,11 @@ angular.module('syncthing.core')
|
|||||||
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