mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
feat: remove machine type dropdown (#546)
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
3b343bcaca
commit
7af8a82838
@ -39,7 +39,6 @@ const FEATURE_FLAGS = {
|
|||||||
],
|
],
|
||||||
'v1.5.1': [],
|
'v1.5.1': [],
|
||||||
'v1.6.0': [
|
'v1.6.0': [
|
||||||
'vmMachineTypes',
|
|
||||||
'customSupportBundle',
|
'customSupportBundle',
|
||||||
'csiOnlineExpandValidation',
|
'csiOnlineExpandValidation',
|
||||||
'vmNetworkMigration',
|
'vmNetworkMigration',
|
||||||
@ -50,7 +49,9 @@ const FEATURE_FLAGS = {
|
|||||||
'vmCloneRunStrategy',
|
'vmCloneRunStrategy',
|
||||||
],
|
],
|
||||||
'v1.6.1': [],
|
'v1.6.1': [],
|
||||||
'v1.7.0': []
|
'v1.7.0': [
|
||||||
|
'vmMachineTypeAuto'
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
const generateFeatureFlags = () => {
|
const generateFeatureFlags = () => {
|
||||||
|
|||||||
@ -873,7 +873,10 @@ export default {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div
|
||||||
|
v-if="!value.vmMachineTypeAutoFeatureEnabled"
|
||||||
|
class="col span-6"
|
||||||
|
>
|
||||||
<LabeledSelect
|
<LabeledSelect
|
||||||
v-model:value="machineType"
|
v-model:value="machineType"
|
||||||
label-key="harvester.virtualMachine.input.MachineType"
|
label-key="harvester.virtualMachine.input.MachineType"
|
||||||
|
|||||||
@ -299,9 +299,11 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
await this.$store.dispatch(`${ this.inStore }/findAll`, { type: SECRET });
|
await this.$store.dispatch(`${ this.inStore }/findAll`, { type: SECRET });
|
||||||
|
|
||||||
if (this.value.vmMachineTypesFeatureEnabled) {
|
if (!this.value.vmMachineTypeAutoFeatureEnabled) {
|
||||||
try {
|
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 });
|
const machineTypes = await this.$store.dispatch('harvester/request', { url });
|
||||||
|
|
||||||
this.machineTypes = machineTypes;
|
this.machineTypes = machineTypes;
|
||||||
|
|||||||
@ -1236,8 +1236,8 @@ export default class VirtVm extends HarvesterResource {
|
|||||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('thirdPartyStorage');
|
return this.$rootGetters['harvester-common/getFeatureEnabled']('thirdPartyStorage');
|
||||||
}
|
}
|
||||||
|
|
||||||
get vmMachineTypesFeatureEnabled() {
|
get vmMachineTypeAutoFeatureEnabled() {
|
||||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('vmMachineTypes');
|
return this.$rootGetters['harvester-common/getFeatureEnabled']('vmMachineTypeAuto');
|
||||||
}
|
}
|
||||||
|
|
||||||
get isBackupTargetUnavailable() {
|
get isBackupTargetUnavailable() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user