-
-
-
copyright © {this.getYear()}{' '}
-
AdGuard
-
-
-
-
-
+
+
+
+ {this.renderCopyright()}
+
+
- )}
+
);
}
@@ -110,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 98287e48..185ba78d 100644
--- a/client/src/components/ui/Version.js
+++ b/client/src/components/ui/Version.js
@@ -6,14 +6,15 @@ import './Version.css';
const Version = (props) => {
const {
- dnsVersion, processingVersion, t,
+ dnsVersion = 'undefined', processingVersion, t, checkUpdateFlag,
} = props;
return (
- version: {dnsVersion}
- }
);
@@ -33,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 7cbeb4b5..642d8503 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,
},
);