Skip to content

Commit

Permalink
gui: Use neutral color for zero out of zero listeners (syncthing#8281)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh authored Apr 20, 2022
1 parent 4893513 commit c0de42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ <h4 class="panel-title">
<th><span class="fas fa-fw fa-sitemap"></span>&nbsp;<span translate>Listeners</span></th>
<td class="text-right">
<span class="data" tooltip data-original-title="{{'Show detailed listener status' | translate}}.">
<a href="" ng-class="{'text-success': listenersFailed.length == 0, 'text-danger': listenersFailed.length == listenersTotal}" ng-click="showListenerStatus()">
<a href="" ng-class="{'text-success': listenersTotal > 0 && listenersFailed.length == 0, 'text-danger': listenersTotal > 0 && listenersFailed.length == listenersTotal}" ng-click="showListenerStatus()">
{{listenersTotal-listenersFailed.length}}/{{listenersTotal}}
</a>
</span>
Expand Down

0 comments on commit c0de42e

Please sign in to comment.