feat: filter entity selectors by global provider filter
Provider selectors in notification tracker, command tracker, and actions forms now only show providers matching the global provider type filter. Command config selector in command trackers also filters by provider type.
This commit is contained in:
@@ -52,9 +52,11 @@
|
||||
return caps && caps.action_types && caps.action_types.length > 0;
|
||||
}));
|
||||
|
||||
let providerItems = $derived(actionProviders.map((p: any) => ({
|
||||
value: p.id, label: p.name, icon: providerDefaultIcon(p), desc: p.type,
|
||||
})));
|
||||
let providerItems = $derived(actionProviders
|
||||
.filter((p: any) => !globalProviderFilter.providerType || p.type === globalProviderFilter.providerType)
|
||||
.map((p: any) => ({
|
||||
value: p.id, label: p.name, icon: providerDefaultIcon(p), desc: p.type,
|
||||
})));
|
||||
|
||||
// Action types for selected provider
|
||||
let selectedProviderType = $derived(providers.find((p: any) => p.id === form.provider_id)?.type || '');
|
||||
|
||||
Reference in New Issue
Block a user