From 85af69450c8c0db0c3ae15939a701ffd5ee456e0 Mon Sep 17 00:00:00 2001 From: michaelftout Date: Fri, 7 Jun 2019 14:20:34 -0700 Subject: [PATCH] Added enableVrsctest param to evaluate if VRSCTEST is shown or not --- routes/api/config.js | 8 ++++---- routes/appConfig.js | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/routes/api/config.js b/routes/api/config.js index 01d37d9c5..446de6833 100644 --- a/routes/api/config.js +++ b/routes/api/config.js @@ -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); } diff --git a/routes/appConfig.js b/routes/appConfig.js index 593ad33a7..54aff8cf5 100644 --- a/routes/appConfig.js +++ b/routes/appConfig.js @@ -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: '', @@ -293,6 +294,9 @@ const appConfig = { type: 'boolean', }, }, + enableVrsctest: { + display: false, + }, pbaasChains: { display: false, },