remove disabled for upgrade action (#340) (#341)

(cherry picked from commit fb59b396d1da5e9814ef9a36aacfca88b2112ca8)

Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2025-06-17 14:12:29 +08:00 committed by GitHub
parent 4c68d057c1
commit d57dbd4c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,14 +32,11 @@ export default class HciSetting extends HarvesterResource {
const hasUpgradeAccess = !!schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase())); const hasUpgradeAccess = !!schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase()));
if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) { if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) {
const latestUpgrade = this.$getters['all'](HCI.UPGRADE).find((upgrade) => upgrade.isLatestUpgrade);
out.unshift({ out.unshift({
action: 'goToAirgapUpgrade', action: 'goToAirgapUpgrade',
enabled: true, enabled: true,
icon: 'icon icon-refresh', icon: 'icon icon-refresh',
label: this.t('harvester.upgradePage.upgrade'), label: this.t('harvester.upgradePage.upgrade'),
disabled: !!latestUpgrade && latestUpgrade?.isUpgradeSucceeded
}); });
} }