summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/user_settings_developer.jsx13
-rw-r--r--web/react/stores/browser_store.jsx7
2 files changed, 15 insertions, 5 deletions
diff --git a/web/react/components/user_settings_developer.jsx b/web/react/components/user_settings_developer.jsx
index 1b04149dc..3e75e7ad8 100644
--- a/web/react/components/user_settings_developer.jsx
+++ b/web/react/components/user_settings_developer.jsx
@@ -77,6 +77,19 @@ export default class DeveloperTab extends React.Component {
<h3 className='tab-header'>{'Developer Settings'}</h3>
<div className='divider-dark first'/>
{appSection}
+ <div className='divider-dark first'/>
+ <ul
+ className='section-min'
+ >
+ <li className='col-sm-10 section-title'>{'Version'}</li>
+ <li className='col-sm-7 section-describe'>
+ {
+ global.window.config.Version + ' (' +
+ global.window.config.BuildNumber + '/' +
+ global.window.config.BuildDate + ')'
+ }
+ </li>
+ </ul>
<div className='divider-dark'/>
</div>
</div>
diff --git a/web/react/stores/browser_store.jsx b/web/react/stores/browser_store.jsx
index e1ca52746..d2dedb271 100644
--- a/web/react/stores/browser_store.jsx
+++ b/web/react/stores/browser_store.jsx
@@ -9,9 +9,6 @@ function getPrefix() {
return UserStore.getCurrentId() + '_';
}
-// Also change model/utils.go ETAG_ROOT_VERSION
-var BROWSER_STORE_VERSION = '.5';
-
class BrowserStoreClass {
constructor() {
this.getItem = this.getItem.bind(this);
@@ -25,9 +22,9 @@ class BrowserStoreClass {
this.isLocalStorageSupported = this.isLocalStorageSupported.bind(this);
var currentVersion = localStorage.getItem('local_storage_version');
- if (currentVersion !== BROWSER_STORE_VERSION) {
+ if (currentVersion !== global.window.config.Version) {
this.clear();
- localStorage.setItem('local_storage_version', BROWSER_STORE_VERSION);
+ localStorage.setItem('local_storage_version', global.window.config.Version);
}
}