mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 15:01:46 +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);
|
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>
|
</script>
|
||||||
@ -455,6 +440,7 @@ export default {
|
|||||||
v-model:value="value.spec.uplink.nics"
|
v-model:value="value.spec.uplink.nics"
|
||||||
:mode="mode"
|
:mode="mode"
|
||||||
:options="nicOptions"
|
:options="nicOptions"
|
||||||
|
:enableDefaultAddValue="false"
|
||||||
:array-list-props="{
|
:array-list-props="{
|
||||||
addLabel: t('harvester.vlanConfig.uplink.nics.addLabel'),
|
addLabel: t('harvester.vlanConfig.uplink.nics.addLabel'),
|
||||||
initialEmptyRow: true,
|
initialEmptyRow: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user