mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Bring status object in harvesterhci.io.upgrade dismiss PUT API (#201)
* bring status object in PUT dismiss API Signed-off-by: Andy Lee <andy.lee@suse.com> * add cleanForSave in harvester model Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -66,4 +66,8 @@ export default class HarvesterResource extends SteveModel {
|
||||
return this.hasLink('self') && this.$rootGetters['prefs/get'](DEV);
|
||||
}
|
||||
}
|
||||
|
||||
cleanForSave(data, _forNew) {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,10 @@ export default class HciUpgrade extends HarvesterResource {
|
||||
return this?.status?.imageID;
|
||||
}
|
||||
|
||||
cleanForSave(data, _forNew) {
|
||||
return data;
|
||||
}
|
||||
|
||||
get upgradeMessage() {
|
||||
const upgradeMessage = [];
|
||||
const nodeStatuses = this?.status?.nodeStatuses || {};
|
||||
|
||||
Reference in New Issue
Block a user