Fix row action count for views
This commit is contained in:
parent
2a02298ac2
commit
7d5e884a8f
|
@ -23,8 +23,7 @@
|
|||
$: tableId = ds?.tableId
|
||||
$: isView = ds?.type === "viewV2"
|
||||
$: fetchRowActions(tableId)
|
||||
$: viewActiveCount = 0
|
||||
$: actionCount = isView ? viewActiveCount : rowActions.length
|
||||
$: actionCount = rowActions.filter(action => !isView || action.enabled).length
|
||||
|
||||
const rowActionUrl = derived([url, appStore], ([$url, $appStore]) => {
|
||||
return ({ automationId }) => {
|
||||
|
|
|
@ -146,10 +146,10 @@
|
|||
{#if !isUsersTable}
|
||||
<GridRowActionsButton />
|
||||
{/if}
|
||||
<GridScreensButton on:request-generate={() => generateButton?.show()} />
|
||||
<GridAutomationsButton
|
||||
on:request-generate={() => generateButton?.show()}
|
||||
/>
|
||||
<GridScreensButton on:request-generate={() => generateButton?.show()} />
|
||||
{#if !isUsersTable}
|
||||
<GridImportButton />
|
||||
{/if}
|
||||
|
|
Loading…
Reference in New Issue