fix: messaging ui and events filter (#27512)
This commit is contained in:
parent
0149242ec9
commit
f855c6d87b
4 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@
|
|||
:disabled="disabled"
|
||||
:rows="3"
|
||||
required
|
||||
@change="updateMessage($event.target.value)"
|
||||
@update:model-value="updateMessage"
|
||||
/>
|
||||
<div class="text-end small text-gray mt-1">
|
||||
<a
|
||||
|
|
|
|||
|
|
@ -698,7 +698,7 @@ export default defineComponent({
|
|||
messagingUiConfigured() {
|
||||
return (
|
||||
this.messengers.length > 0 ||
|
||||
Object.keys(store.state.messagingEvents ?? {}).length > 0
|
||||
Object.values(store.state.messagingEvents ?? {}).some((e) => !e.disabled)
|
||||
);
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ func NewHub(cc globalconfig.MessagingEvents, vv Vehicles, cache *util.ParamCache
|
|||
}
|
||||
|
||||
h := &Hub{
|
||||
definitions: cc,
|
||||
definitions: filtered,
|
||||
cache: cache,
|
||||
vehicles: vv,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,6 +174,6 @@ test.describe("messaging", async () => {
|
|||
await page.keyboard.press("Escape");
|
||||
await expectModalHidden(modal);
|
||||
|
||||
await expect(card).toContainText(["Events", "0", "Services", "0"].join(""));
|
||||
await expect(card).toContainText(["Configured", "no"].join(""));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue