mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
remove disabled for upgrade action (#340)
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
bdcea54eeb
commit
fb59b396d1
@ -32,14 +32,11 @@ export default class HciSetting extends HarvesterResource {
|
||||
const hasUpgradeAccess = !!schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase()));
|
||||
|
||||
if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) {
|
||||
const latestUpgrade = this.$getters['all'](HCI.UPGRADE).find((upgrade) => upgrade.isLatestUpgrade);
|
||||
|
||||
out.unshift({
|
||||
action: 'goToAirgapUpgrade',
|
||||
enabled: true,
|
||||
icon: 'icon icon-refresh',
|
||||
label: this.t('harvester.upgradePage.upgrade'),
|
||||
disabled: !!latestUpgrade && latestUpgrade?.isUpgradeSucceeded
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user