gui: Show 'scanning' on unshared folders (fixes #3068)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3239
This commit is contained in:
parent
ee398f17e1
commit
f792989d9b
@ -606,10 +606,6 @@ angular.module('syncthing.core')
|
|||||||
return 'unknown';
|
return 'unknown';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (folderCfg.devices.length <= 1) {
|
|
||||||
return 'unshared';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($scope.model[folderCfg.id].invalid) {
|
if ($scope.model[folderCfg.id].invalid) {
|
||||||
return 'stopped';
|
return 'stopped';
|
||||||
}
|
}
|
||||||
@ -621,6 +617,13 @@ angular.module('syncthing.core')
|
|||||||
if (state === 'idle' && $scope.model[folderCfg.id].needFiles > 0) {
|
if (state === 'idle' && $scope.model[folderCfg.id].needFiles > 0) {
|
||||||
return 'outofsync';
|
return 'outofsync';
|
||||||
}
|
}
|
||||||
|
if (state === 'scanning') {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (folderCfg.devices.length <= 1) {
|
||||||
|
return 'unshared';
|
||||||
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user