Skip to content

Commit

Permalink
Merge pull request #140 from VerusCoin/dev
Browse files Browse the repository at this point in the history
Added enableVrsctest param to evaluate if VRSCTEST is shown or not
  • Loading branch information
Asherda authored Jun 7, 2019
2 parents 45d1d91 + 85af694 commit 45a286d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ module.exports = (api) => {
api.saveLocalAppConf(_localAppConfig);
}

if (_localAppConfig.verus && _localAppConfig.verus.hasOwnProperty('pbaasTestmode') &&
_localAppConfig.verus.pbaasTestmode !== defaultConf.verus.pbaasTestmode) {
_localAppConfig.verus.pbaasTestmode = defaultConf.verus.pbaasTestmode
api.log('Changed PBaaS Testmode to ' + defaultConf.verus.pbaasTestmode, 'settings');
if (_localAppConfig.hasOwnProperty('enableVrsctest') &&
_localAppConfig.enableVrsctest !== defaultConf.enableVrsctest) {
_localAppConfig.enableVrsctest = defaultConf.enableVrsctest
api.log('Changed PBaaS enableVrsctest to ' + defaultConf.enableVrsctest, 'settings');
localAppConfig = JSON.stringify(_localAppConfig);
api.saveLocalAppConf(_localAppConfig);
}
Expand Down
4 changes: 4 additions & 0 deletions routes/appConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const appConfig = {
autoStakeVRSC: false,
pbaasTestmode: false,
},
enableVrsctest: false,
pbaasChains: [],
reservedChains: Object.keys(chainParams).concat(["KMD", "KOMODO", "zcashd", "komodod", "chipsd", "CHIPS"]),
pubkey: '',
Expand Down Expand Up @@ -293,6 +294,9 @@ const appConfig = {
type: 'boolean',
},
},
enableVrsctest: {
display: false,
},
pbaasChains: {
display: false,
},
Expand Down

0 comments on commit 45a286d

Please sign in to comment.