From 084624220a3037a0a7c3cacf64d50fd9f69b9c83 Mon Sep 17 00:00:00 2001 From: b-Nollet Date: Thu, 19 Sep 2024 09:34:42 +0200 Subject: [PATCH] WIP --- packages/xo-web/src/xo-app/home/host-item.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/xo-web/src/xo-app/home/host-item.js b/packages/xo-web/src/xo-app/home/host-item.js index 9a5070e9372..f1724be92ba 100644 --- a/packages/xo-web/src/xo-app/home/host-item.js +++ b/packages/xo-web/src/xo-app/home/host-item.js @@ -59,9 +59,11 @@ import { getXoaPlan, SOURCES } from '../../common/xoa-plans' export default class HostItem extends Component { state = { isHostTimeConsistentWithXoaTime: true, + isPubKeyTooShort: false, } componentWillMount() { + this.props.isPubKeyTooShort.then(isPubKeyTooShort => this.setState({ isPubKeyTooShort })) Promise.resolve(isHostTimeConsistentWithXoaTime(this.props.item)).then(value => this.setState({ isHostTimeConsistentWithXoaTime: value, @@ -138,7 +140,7 @@ export default class HostItem extends Component { () => this.state.isHostTimeConsistentWithXoaTime, this._getAreHostsVersionsEqual, () => this.props.state.hostsByPoolId[this.props.item.$pool], - () => this.props.isPubKeyTooShort, + () => this.state.isPubKeyTooShort, (needsRestart, host, isMaintained, isHostTimeConsistentWithXoaTime, areHostsVersionsEqual, poolHosts, isPubKeyTooShort) => { const alerts = [] @@ -205,12 +207,10 @@ export default class HostItem extends Component { render: ( {_('pubKeyTooShort')} - -
    -
  • {_('longerCustomCertficate')}
  • -
  • {_('longerDefaultCertificate')}
  • -
-
+
    +
  • {_('longerCustomCertficate')}
  • +
  • {_('longerDefaultCertificate')}
  • +
), })