mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06:05 +08:00
Fix OS upgrade page (#306)
* fix OS upgrade page Signed-off-by: Andy Lee <andy.lee@suse.com> * move uploadFile action Signed-off-by: Andy Lee <andy.lee@suse.com> * change os upgrage ui to standard feature Signed-off-by: a110605 <andy.lee@suse.com> * Add uploadImage cancel Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com> Signed-off-by: a110605 <andy.lee@suse.com>
This commit is contained in:
@@ -28,6 +28,7 @@ export default class HciSetting extends HarvesterResource {
|
||||
}
|
||||
|
||||
const schema = this.$getters['schemaFor'](HCI.UPGRADE);
|
||||
|
||||
const hasUpgradeAccess = !!schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase()));
|
||||
|
||||
if (this.id === HCI_SETTING.SERVER_VERSION && hasUpgradeAccess) {
|
||||
@@ -38,7 +39,7 @@ export default class HciSetting extends HarvesterResource {
|
||||
enabled: true,
|
||||
icon: 'icon icon-refresh',
|
||||
label: this.t('harvester.upgradePage.upgrade'),
|
||||
disabled: !!latestUpgrade && !latestUpgrade?.isUpgradeSucceeded
|
||||
disabled: !!latestUpgrade && latestUpgrade?.isUpgradeSucceeded
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user