refac
This commit is contained in:
1 parent
515f85fe1c
commit
696f356881
1 file changed
+6
@@ -720,8 +720,10 @@
|
|||||||
<ToolsSelector bind:selectedToolIds={toolIds} tools={$tools} />
|
<ToolsSelector bind:selectedToolIds={toolIds} tools={$tools} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if $functions.filter((func) => func.type === 'filter').length > 0 || $functions.filter((func) => func.type === 'action').length > 0}
|
||||||
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
|
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
|
||||||
|
|
||||||
|
{#if $functions.filter((func) => func.type === 'filter').length > 0}
|
||||||
<div class="my-2">
|
<div class="my-2">
|
||||||
<FiltersSelector
|
<FiltersSelector
|
||||||
bind:selectedFilterIds={filterIds}
|
bind:selectedFilterIds={filterIds}
|
||||||
@@ -746,13 +748,17 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if $functions.filter((func) => func.type === 'action').length > 0}
|
||||||
<div class="my-2">
|
<div class="my-2">
|
||||||
<ActionsSelector
|
<ActionsSelector
|
||||||
bind:selectedActionIds={actionIds}
|
bind:selectedActionIds={actionIds}
|
||||||
actions={$functions.filter((func) => func.type === 'action')}
|
actions={$functions.filter((func) => func.type === 'action')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
|
<hr class=" border-gray-100/30 dark:border-gray-850/30 my-2" />
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user