Rename allowedViews to allowedSources
This commit is contained in:
parent
6c2c422fa5
commit
b6aebd67a8
|
@ -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>
|
||||||
|
|
|
@ -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] = []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue