Config UI: hide disabled vehicles from loadpoint default-vehicle dropdown (#33125)
This commit is contained in:
parent
f216a440e1
commit
7f33bb9317
1 changed files with 3 additions and 1 deletions
|
|
@ -1092,7 +1092,9 @@ export default defineComponent({
|
|||
return result;
|
||||
},
|
||||
vehicleOptions(): VehicleOption[] {
|
||||
return this.vehicles.map((v) => ({ key: v.name, name: v.config?.title || v.name }));
|
||||
return this.vehicles
|
||||
.filter((v) => !v.deviceDisable)
|
||||
.map((v) => ({ key: v.name, name: v.config?.title || v.name }));
|
||||
},
|
||||
hems() {
|
||||
return store.state?.hems;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue