mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
fix: VM's machine type options is not support (#307)
* feat: get options from API Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * feat: add feature flag Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * refactor: remove default value Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * refactor: fallback to none Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> --------- Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
@@ -114,13 +114,11 @@ export default {
|
||||
},
|
||||
|
||||
machineTypeOptions() {
|
||||
return [{
|
||||
label: 'None',
|
||||
value: ''
|
||||
}, {
|
||||
label: 'q35',
|
||||
value: 'q35'
|
||||
}];
|
||||
return this.machineTypes.map((type) => {
|
||||
if (!type) return { label: 'None', value: '' };
|
||||
|
||||
return { label: type, value: type };
|
||||
});
|
||||
},
|
||||
|
||||
templateOptions() {
|
||||
|
||||
Reference in New Issue
Block a user