mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
Fix unexpected Nics dropdown when creating network configuration
This commit is contained in:
parent
ab92ffe380
commit
74cd805698
@ -361,21 +361,6 @@ export default {
|
||||
|
||||
this.nicErrors = uniq(nicErrors);
|
||||
},
|
||||
|
||||
'value.spec.uplink.nics'(nics = []) {
|
||||
const nicErrors = [];
|
||||
const options = this.nicOptions || [];
|
||||
|
||||
nics.map((n) => {
|
||||
const option = options.find(option => option.value === n);
|
||||
|
||||
if ((option && option?.disabled) || !option) {
|
||||
nicErrors.push(this.t('harvester.vlanConfig.uplink.nics.validate.available', { nic: n }, true));
|
||||
}
|
||||
});
|
||||
|
||||
this.nicErrors = uniq(nicErrors);
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@ -455,6 +440,7 @@ export default {
|
||||
v-model:value="value.spec.uplink.nics"
|
||||
:mode="mode"
|
||||
:options="nicOptions"
|
||||
:enableDefaultAddValue="false"
|
||||
:array-list-props="{
|
||||
addLabel: t('harvester.vlanConfig.uplink.nics.addLabel'),
|
||||
initialEmptyRow: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user