|
@ -11,10 +11,11 @@ import { |
|
|
addPeerNode, |
|
|
addPeerNode, |
|
|
getAppConfig, |
|
|
getAppConfig, |
|
|
saveAppConfig, |
|
|
saveAppConfig, |
|
|
|
|
|
resetAppConfig, |
|
|
getAppInfo, |
|
|
getAppInfo, |
|
|
shepherdCli, |
|
|
shepherdCli, |
|
|
checkForUpdateUIPromise, |
|
|
checkForUpdateUIPromise, |
|
|
updateUIPromise |
|
|
updateUIPromise, |
|
|
} from '../../../actions/actionCreators'; |
|
|
} from '../../../actions/actionCreators'; |
|
|
import Store from '../../../store'; |
|
|
import Store from '../../../store'; |
|
|
|
|
|
|
|
@ -72,6 +73,7 @@ class Settings extends React.Component { |
|
|
this.renderPeersList = this.renderPeersList.bind(this); |
|
|
this.renderPeersList = this.renderPeersList.bind(this); |
|
|
this.renderSNPeersList = this.renderSNPeersList.bind(this); |
|
|
this.renderSNPeersList = this.renderSNPeersList.bind(this); |
|
|
this._saveAppConfig = this._saveAppConfig.bind(this); |
|
|
this._saveAppConfig = this._saveAppConfig.bind(this); |
|
|
|
|
|
this._resetAppConfig = this._resetAppConfig.bind(this); |
|
|
this.exportWifKeysRaw = this.exportWifKeysRaw.bind(this); |
|
|
this.exportWifKeysRaw = this.exportWifKeysRaw.bind(this); |
|
|
this.toggleSeedInputVisibility = this.toggleSeedInputVisibility.bind(this); |
|
|
this.toggleSeedInputVisibility = this.toggleSeedInputVisibility.bind(this); |
|
|
this._checkForUpdateUIPromise = this._checkForUpdateUIPromise.bind(this); |
|
|
this._checkForUpdateUIPromise = this._checkForUpdateUIPromise.bind(this); |
|
@ -97,6 +99,10 @@ class Settings extends React.Component { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_resetAppConfig() { |
|
|
|
|
|
Store.dispatch(resetAppConfig()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
resizeLoginTextarea() { |
|
|
resizeLoginTextarea() { |
|
|
// auto-size textarea
|
|
|
// auto-size textarea
|
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|