lib/model: Allow limiting number of concurrent scans (fixes #2760) (#4888)

This commit is contained in:
Audrius Butkevicius
2018-12-05 07:40:05 +00:00
committed by Jakob Borg
parent 0fe4c01a28
commit ff2cde469e
8 changed files with 154 additions and 6 deletions

View File

@@ -313,6 +313,7 @@
<span ng-switch-when="paused"><span class="hidden-xs" translate>Paused</span><span class="visible-xs">&#9724;</span></span>
<span ng-switch-when="unknown"><span class="hidden-xs" translate>Unknown</span><span class="visible-xs">&#9724;</span></span>
<span ng-switch-when="unshared"><span class="hidden-xs" translate>Unshared</span><span class="visible-xs">&#9724;</span></span>
<span ng-switch-when="scan-waiting"><span class="hidden-xs" translate>Waiting to scan</span><span class="visible-xs">&#9724;</span></span>
<span ng-switch-when="stopped"><span class="hidden-xs" translate>Stopped</span><span class="visible-xs">&#9724;</span></span>
<span ng-switch-when="scanning">
<span class="hidden-xs" translate>Scanning</span>

View File

@@ -769,7 +769,7 @@ angular.module('syncthing.core')
if (status === 'stopped' || status === 'outofsync' || status === 'error') {
return 'danger';
}
if (status === 'unshared') {
if (status === 'unshared' || status === 'scan-waiting') {
return 'warning';
}