Browse Source

indicate app mode in title bar

all-modes
pbca26 8 years ago
parent
commit
6ac884ec61
  1. 5
      react/src/components/main/main.js
  2. 2
      react/src/translate/en.js

5
react/src/components/main/main.js

@ -27,14 +27,17 @@ class Main extends React.Component {
componentDidMount() {
let appVersion;
let zcashParamsExist;
let appConfig;
try {
appVersion = window.require('electron').remote.getCurrentWindow().appBasicInfo;
appConfig = window.require('electron').remote.getCurrentWindow().appConfig;
zcashParamsExist = window.require('electron').remote.getCurrentWindow().zcashParamsExist;
} catch (e) {}
if (appVersion) {
document.title = `${appVersion.name} (v${appVersion.version.replace('version=', '')}-beta)`;
const _appMode = `${appConfig.iguanaLessMode ? ' - ' + translate('INDEX.NATIVE_ONLY_MODE') : ' - ' + translate('INDEX.NORMAL_MODE')}`;
document.title = `${appVersion.name} (v${appVersion.version.replace('version=', '')}-beta)${_appMode}`;
}
if (!zcashParamsExist) {

2
react/src/translate/en.js

@ -46,6 +46,8 @@ export const _lang = {
'NO_ACTIVE_COIN': 'No active coin',
},
'INDEX': {
'NATIVE_ONLY_MODE': 'Native only mode',
'NORMAL_MODE': 'Normal mode',
'T_FUNDS': 'Transparent funds',
'HASH': 'Hash',
'SYNC_IN_PROGRESS': 'Synchronization is in progress',

Loading…
Cancel
Save