diff --git a/client/src/components/App/index.js b/client/src/components/App/index.js
index 0b4d8cf910a..2458f667a1d 100644
--- a/client/src/components/App/index.js
+++ b/client/src/components/App/index.js
@@ -126,6 +126,7 @@ class App extends Component {
dnsPort={dashboard.dnsPort}
processingVersion={dashboard.processingVersion}
getVersion={getVersion}
+ checkUpdateFlag={dashboard.checkUpdateFlag}
/>
diff --git a/client/src/components/ui/Footer.js b/client/src/components/ui/Footer.js
index be7c4450ad4..14f37637473 100644
--- a/client/src/components/ui/Footer.js
+++ b/client/src/components/ui/Footer.js
@@ -57,7 +57,7 @@ class Footer extends Component {
render() {
const {
- dnsVersion, processingVersion, getVersion,
+ dnsVersion, processingVersion, getVersion, checkUpdateFlag,
} = this.props;
return (
@@ -94,6 +94,7 @@ class Footer extends Component {
dnsVersion={dnsVersion}
processingVersion={processingVersion}
getVersion={getVersion}
+ checkUpdateFlag={checkUpdateFlag}
/>
@@ -108,6 +109,7 @@ Footer.propTypes = {
dnsVersion: PropTypes.string,
processingVersion: PropTypes.bool,
getVersion: PropTypes.func,
+ checkUpdateFlag: PropTypes.bool,
};
export default withTranslation()(Footer);
diff --git a/client/src/components/ui/Version.js b/client/src/components/ui/Version.js
index 8447ceb8e55..185ba78d955 100644
--- a/client/src/components/ui/Version.js
+++ b/client/src/components/ui/Version.js
@@ -6,27 +6,25 @@ import './Version.css';
const Version = (props) => {
const {
- dnsVersion, processingVersion, t,
+ dnsVersion = 'undefined', processingVersion, t, checkUpdateFlag,
} = props;
return (
- {dnsVersion && <>
- version:
- {dnsVersion}
-
- >}
+ version:
+ {dnsVersion}
+ {checkUpdateFlag && }
);
@@ -36,6 +34,7 @@ Version.propTypes = {
dnsVersion: PropTypes.string.isRequired,
getVersion: PropTypes.func.isRequired,
processingVersion: PropTypes.bool.isRequired,
+ checkUpdateFlag: PropTypes.bool.isRequired,
t: PropTypes.func.isRequired,
};
diff --git a/client/src/reducers/index.js b/client/src/reducers/index.js
index 7cbeb4b5297..642d85032c5 100644
--- a/client/src/reducers/index.js
+++ b/client/src/reducers/index.js
@@ -96,6 +96,7 @@ const dashboard = handleActions(
canAutoUpdate,
isUpdateAvailable: true,
processingVersion: false,
+ checkUpdateFlag: !!payload,
};
return newState;
}
@@ -165,6 +166,7 @@ const dashboard = handleActions(
autoClients: [],
supportedTags: [],
name: '',
+ checkUpdateFlag: false,
},
);