Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
Don't display empty knobLabel on summarize
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentM committed Oct 11, 2015
1 parent ae12178 commit 74874e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html_template/toggle_switch_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</span>
<span ng-show="isSummarised">
<div class="toggle-switch-summarize" ng-class="switchSize">
<span class="switch-knob" ng-style="{ 'background-color': knobLabelColor }">{{knobLabel}}</span>
<span ng-show="knobLabel.length > 0" class="switch-knob" ng-style="{ 'background-color': knobLabelColor }">{{knobLabel}}</span>
<span ng-show="model != undefined && model" ng-style="{ 'background-color': leftLabelColor }" class="switch-left">{{leftLabel}}</span>
<span ng-show="model != undefined && !model" ng-style="{ 'background-color': rightLabelColor }" class="switch-right">{{rightLabel}}</span>
</div>
Expand Down

0 comments on commit 74874e6

Please sign in to comment.