Rename allowedViews to allowedSources

This commit is contained in:
Adria Navarro 2024-10-04 12:55:50 +02:00
parent 6c2c422fa5
commit b6aebd67a8
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@
{#if isView} {#if isView}
<span> <span>
<Toggle <Toggle
value={action.allowedViews?.includes(viewId)} value={action.allowedSources?.includes(viewId)}
on:change={e => toggleAction(action, e.detail)} on:change={e => toggleAction(action, e.detail)}
/> />
</span> </span>

View File

@ -131,7 +131,7 @@ const derivedStore = derived(store, $store => {
Object.keys($store || {}).forEach(tableId => { Object.keys($store || {}).forEach(tableId => {
map[tableId] = $store[tableId] map[tableId] = $store[tableId]
for (let action of $store[tableId]) { for (let action of $store[tableId]) {
for (let viewId of action.allowedViews || []) { for (let viewId of action.allowedSources || []) {
if (!map[viewId]) { if (!map[viewId]) {
map[viewId] = [] map[viewId] = []
} }