mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
Signed-off-by: Andy Lee <andy.lee@suse.com> (cherry picked from commit 22a032e56c63029472b25dc901c587d48b0161c0) Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
10d159e2c7
commit
4afacd754a
@ -2,6 +2,7 @@ import { MODE, _CREATE } from '@shell/config/query-params';
|
|||||||
import { HCI } from '../types';
|
import { HCI } from '../types';
|
||||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||||
import HarvesterResource from './harvester';
|
import HarvesterResource from './harvester';
|
||||||
|
import { clone } from '@shell/utils/object';
|
||||||
|
|
||||||
export default class HciVmTemplate extends HarvesterResource {
|
export default class HciVmTemplate extends HarvesterResource {
|
||||||
get availableActions() {
|
get availableActions() {
|
||||||
@ -71,4 +72,12 @@ export default class HciVmTemplate extends HarvesterResource {
|
|||||||
get defaultVersion() {
|
get defaultVersion() {
|
||||||
return this.status?.defaultVersion;
|
return this.status?.defaultVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get doneOverride() {
|
||||||
|
const detailLocation = clone(this.listLocation);
|
||||||
|
|
||||||
|
detailLocation.params.resource = HCI.VM_VERSION;
|
||||||
|
|
||||||
|
return detailLocation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user