Use a static label for the button

Trac: 31685
This commit is contained in:
Arlo Breault 2019-09-27 18:50:24 -04:00
parent a5071ec1d6
commit 36eb07a6fc
5 changed files with 3 additions and 13 deletions

View file

@ -38,7 +38,6 @@ class BadgeUI extends UI {
turnOn() {
const clients = this.active ? 1 : 0;
this.popup.setChecked(true);
this.popup.setToggleText(messages.getMessage('popupTurnOff'));
if (clients > 0) {
this.popup.setStatusText(messages.getMessage('popupStatusOn', String(clients)));
} else {
@ -52,7 +51,6 @@ class BadgeUI extends UI {
turnOff() {
this.popup.setChecked(false);
this.popup.setToggleText(messages.getMessage('popupTurnOn'));
this.popup.setStatusText(messages.getMessage('popupStatusOff'));
this.popup.setStatusDesc('');
this.popup.setEnabled(false);