mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-11 02:36:17 +00:00
parent
0cc77feabb
commit
6d27cf6563
@ -799,20 +799,20 @@ angular.module('syncthing.core')
|
|||||||
if (state === 'error') {
|
if (state === 'error') {
|
||||||
return 'stopped'; // legacy, the state is called "stopped" in the GUI
|
return 'stopped'; // legacy, the state is called "stopped" in the GUI
|
||||||
}
|
}
|
||||||
if (state === 'idle' && folderInfo.needTotalItems > 0) {
|
|
||||||
|
if (state !== 'idle') {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (folderInfo.needTotalItems > 0) {
|
||||||
return 'outofsync';
|
return 'outofsync';
|
||||||
}
|
}
|
||||||
if ($scope.hasFailedFiles(folderCfg.id)) {
|
if ($scope.hasFailedFiles(folderCfg.id)) {
|
||||||
return 'faileditems';
|
return 'faileditems';
|
||||||
}
|
}
|
||||||
if (state === 'scanning') {
|
|
||||||
return state;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (folderInfo.receiveOnlyTotalItems) {
|
if (folderInfo.receiveOnlyTotalItems) {
|
||||||
return 'localadditions';
|
return 'localadditions';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (folderCfg.devices.length <= 1) {
|
if (folderCfg.devices.length <= 1) {
|
||||||
return 'unshared';
|
return 'unshared';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user