mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-27 17:26:39 +03:00
fix install
This commit is contained in:
parent
91d5dd23ce
commit
399d28e67f
1 changed files with 3 additions and 4 deletions
|
@ -16,8 +16,7 @@ const Version = () => {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { dnsVersion, processingVersion, checkUpdateFlag } = dashboard;
|
const version = dashboard?.dnsVersion || install?.dnsVersion;
|
||||||
const version = dnsVersion || install?.dnsVersion;
|
|
||||||
|
|
||||||
const onClick = () => {
|
const onClick = () => {
|
||||||
dispatch(getVersion(true));
|
dispatch(getVersion(true));
|
||||||
|
@ -35,12 +34,12 @@ const Version = () => {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{checkUpdateFlag && (
|
{dashboard?.checkUpdateFlag && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-icon btn-icon-sm btn-outline-primary btn-sm ml-2"
|
className="btn btn-icon btn-icon-sm btn-outline-primary btn-sm ml-2"
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
disabled={processingVersion}
|
disabled={dashboard?.processingVersion}
|
||||||
title={t('check_updates_now')}>
|
title={t('check_updates_now')}>
|
||||||
<svg className="icons icon12">
|
<svg className="icons icon12">
|
||||||
<use xlinkHref="#refresh" />
|
<use xlinkHref="#refresh" />
|
||||||
|
|
Loading…
Reference in a new issue