gui: Early return 'danger' over 'warning'

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3251
This commit is contained in:
Daniel Harte
2016-06-02 18:34:25 +00:00
committed by Audrius Butkevicius
parent 8ac862f50a
commit d317f197be

View File

@@ -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';
};