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') {
|
if (status === 'unknown') {
|
||||||
return 'info';
|
return 'info';
|
||||||
}
|
}
|
||||||
if (status === 'unshared') {
|
|
||||||
return 'warning';
|
|
||||||
}
|
|
||||||
if (status === 'stopped' || status === 'outofsync' || status === 'error') {
|
if (status === 'stopped' || status === 'outofsync' || status === 'error') {
|
||||||
return 'danger';
|
return 'danger';
|
||||||
}
|
}
|
||||||
|
if (status === 'unshared') {
|
||||||
|
return 'warning';
|
||||||
|
}
|
||||||
|
|
||||||
return 'info';
|
return 'info';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user