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;
|
||||
}
|
||||
|
||||
const { dnsVersion, processingVersion, checkUpdateFlag } = dashboard;
|
||||
const version = dnsVersion || install?.dnsVersion;
|
||||
const version = dashboard?.dnsVersion || install?.dnsVersion;
|
||||
|
||||
const onClick = () => {
|
||||
dispatch(getVersion(true));
|
||||
|
@ -35,12 +34,12 @@ const Version = () => {
|
|||
</>
|
||||
)}
|
||||
|
||||
{checkUpdateFlag && (
|
||||
{dashboard?.checkUpdateFlag && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-icon btn-icon-sm btn-outline-primary btn-sm ml-2"
|
||||
onClick={onClick}
|
||||
disabled={processingVersion}
|
||||
disabled={dashboard?.processingVersion}
|
||||
title={t('check_updates_now')}>
|
||||
<svg className="icons icon12">
|
||||
<use xlinkHref="#refresh" />
|
||||
|
|
Loading…
Reference in a new issue