gui: Early return 'danger' over 'warning'
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3251
This commit is contained in:
committed by
Audrius Butkevicius
parent
8ac862f50a
commit
d317f197be
@@ -640,12 +640,12 @@ angular.module('syncthing.core')
|
||||
if (status === 'unknown') {
|
||||
return 'info';
|
||||
}
|
||||
if (status === 'unshared') {
|
||||
return 'warning';
|
||||
}
|
||||
if (status === 'stopped' || status === 'outofsync' || status === 'error') {
|
||||
return 'danger';
|
||||
}
|
||||
if (status === 'unshared') {
|
||||
return 'warning';
|
||||
}
|
||||
|
||||
return 'info';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user