fix install

This commit is contained in:
Ildar Kamalov 2024-07-01 19:37:05 +03:00
parent 91d5dd23ce
commit 399d28e67f

View file

@ -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" />