|
|
@ -60,14 +60,5 @@ module.exports = class SettingsTab extends ViewPlugin { |
|
|
|
this.config.set('settings/matomo-analytics', isChecked) |
|
|
|
this.config.set('settings/matomo-analytics', isChecked) |
|
|
|
this.useMatomoAnalytics = isChecked |
|
|
|
this.useMatomoAnalytics = isChecked |
|
|
|
this.renderComponent() |
|
|
|
this.renderComponent() |
|
|
|
// if (isChecked) {
|
|
|
|
|
|
|
|
// this._view.useMatomoAnalytics.setAttribute('checked', '')
|
|
|
|
|
|
|
|
// this._view.useMatomoAnalyticsLabel.classList.remove('text-secondary')
|
|
|
|
|
|
|
|
// this._view.useMatomoAnalyticsLabel.classList.add('text-dark')
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// this._view.useMatomoAnalytics.removeAttribute('checked')
|
|
|
|
|
|
|
|
// this._view.useMatomoAnalyticsLabel.classList.remove('text-dark')
|
|
|
|
|
|
|
|
// this._view.useMatomoAnalyticsLabel.classList.add('text-secondary')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|