fix settings tab

pull/3094/head
yann300 6 years ago
parent 8f7543bbb9
commit d266ca2737
  1. 7
      src/app/tabs/settings-tab.js

@ -150,11 +150,12 @@ module.exports = class SettingsTab extends ApiFactory {
${this._view.config.themes}
</div>`
var self = this
function onchangeGenerateContractMetadata (event) {
this.config.set('settings/generate-contract-metadata', !this.config.get('settings/generate-contract-metadata'))
self.config.set('settings/generate-contract-metadata', !self.config.get('settings/generate-contract-metadata'))
}
function onchangeOption (event) {
this.config.set('settings/always-use-vm', !this.config.get('settings/always-use-vm'))
self.config.set('settings/always-use-vm', !self.config.get('settings/always-use-vm'))
}
function onswitch2darkTheme (event) {
styleGuide.switchTheme('dark')
@ -166,7 +167,7 @@ module.exports = class SettingsTab extends ApiFactory {
styleGuide.switchTheme('clean')
}
function onchangePersonal (event) {
this.config.set('settings/personal-mode', !this.config.get('settings/personal-mode'))
self.config.set('settings/personal-mode', !self.config.get('settings/personal-mode'))
}
styleGuide.switchTheme()
return this._view.el

Loading…
Cancel
Save