Skip to content

Commit

Permalink
fix(ui5-switch): change getters names (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Jun 20, 2019
1 parent 2e4486b commit 2d94b60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/main/src/Switch.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<div class="ui5-switch-inner">
<div class="ui5-switch-track">
<div class="ui5-switch-slider">
<span class="ui5-switch-text ui5-switch-text--on">{{textOn}}</span>
<span class="ui5-switch-text ui5-switch-text--off">{{textOff}}</span>
<span class="ui5-switch-text ui5-switch-text--on">{{_textOn}}</span>
<span class="ui5-switch-text ui5-switch-text--off">{{_textOff}}</span>
<span class="ui5-switch-handle"></span>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/main/src/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ class Switch extends UI5Element {
}
}

get textOn() {
get _textOn() {
return this.graphical ? "" : this.textOn;
}

get textOff() {
get _textOff() {
return this.graphical ? "" : this.textOff;
}

Expand Down

0 comments on commit 2d94b60

Please sign in to comment.