mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
feat: remove machine type dropdown (#546)
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
@@ -299,9 +299,11 @@ export default {
|
||||
async created() {
|
||||
await this.$store.dispatch(`${ this.inStore }/findAll`, { type: SECRET });
|
||||
|
||||
if (this.value.vmMachineTypesFeatureEnabled) {
|
||||
if (!this.value.vmMachineTypeAutoFeatureEnabled) {
|
||||
try {
|
||||
const url = this.$store.getters['harvester-common/getHarvesterClusterUrl']('v1/harvester/clusters/local?link=machineTypes');
|
||||
const url = this.$store.getters['harvester-common/getHarvesterClusterUrl'](
|
||||
'v1/harvester/clusters/local?link=machineTypes'
|
||||
);
|
||||
const machineTypes = await this.$store.dispatch('harvester/request', { url });
|
||||
|
||||
this.machineTypes = machineTypes;
|
||||
|
||||
Reference in New Issue
Block a user