diff --git a/pkg/harvester/models/harvesterhci.io.virtualmachinetemplate.js b/pkg/harvester/models/harvesterhci.io.virtualmachinetemplate.js index bc9b6d9e..ad4531a8 100644 --- a/pkg/harvester/models/harvesterhci.io.virtualmachinetemplate.js +++ b/pkg/harvester/models/harvesterhci.io.virtualmachinetemplate.js @@ -2,6 +2,7 @@ import { MODE, _CREATE } from '@shell/config/query-params'; import { HCI } from '../types'; import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester'; import HarvesterResource from './harvester'; +import { clone } from '@shell/utils/object'; export default class HciVmTemplate extends HarvesterResource { get availableActions() { @@ -71,4 +72,12 @@ export default class HciVmTemplate extends HarvesterResource { get defaultVersion() { return this.status?.defaultVersion; } + + get doneOverride() { + const detailLocation = clone(this.listLocation); + + detailLocation.params.resource = HCI.VM_VERSION; + + return detailLocation; + } }