UI: Mqtt vesion add excludeVersion.
This commit is contained in:
parent
daafd8b5d3
commit
ef385c4fa9
@ -41,7 +41,13 @@ export class MqttVersionSelectComponent implements ControlValueAccessor {
|
|||||||
@Input()
|
@Input()
|
||||||
appearance: MatFormFieldAppearance = 'fill';
|
appearance: MatFormFieldAppearance = 'fill';
|
||||||
|
|
||||||
mqttVersions = Object.values(MqttVersion);
|
@Input()
|
||||||
|
excludeVersions: MqttVersion[];
|
||||||
|
|
||||||
|
get mqttVersions(): MqttVersion[] {
|
||||||
|
return Object.values(MqttVersion).filter(v => !this.excludeVersions || !this.excludeVersions.includes(v));
|
||||||
|
}
|
||||||
|
|
||||||
mqttVersionTranslation = MqttVersionTranslation;
|
mqttVersionTranslation = MqttVersionTranslation;
|
||||||
modelValue: MqttVersion;
|
modelValue: MqttVersion;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user