mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 00:46:01 +00:00
fixed open query from datagrid
This commit is contained in:
@@ -1840,7 +1840,7 @@
|
|||||||
<FormStyledButton value="Reset filter" on:click={() => display.clearFilters()} />
|
<FormStyledButton value="Reset filter" on:click={() => display.clearFilters()} />
|
||||||
<FormStyledButton value="Reset view" on:click={() => display.resetConfig()} />
|
<FormStyledButton value="Reset view" on:click={() => display.resetConfig()} />
|
||||||
{#if onOpenQueryOnError ?? onOpenQuery}
|
{#if onOpenQueryOnError ?? onOpenQuery}
|
||||||
<FormStyledButton value="Open Query" on:click={onOpenQueryOnError ?? onOpenQuery} />
|
<FormStyledButton value="Open Query" on:click={() => (onOpenQueryOnError ?? onOpenQuery)()} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{:else if isDynamicStructure && isLoadedAll && grider?.rowCount == 0}
|
{:else if isDynamicStructure && isLoadedAll && grider?.rowCount == 0}
|
||||||
@@ -1858,7 +1858,7 @@
|
|||||||
<FormStyledButton value="Add document" on:click={addJsonDocument} />
|
<FormStyledButton value="Add document" on:click={addJsonDocument} />
|
||||||
{/if}
|
{/if}
|
||||||
{#if onOpenQuery}
|
{#if onOpenQuery}
|
||||||
<FormStyledButton value="Open Query" on:click={onOpenQuery} />
|
<FormStyledButton value="Open Query" on:click={() => onOpenQuery()} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{:else if grider.errors && grider.errors.length > 0}
|
{:else if grider.errors && grider.errors.length > 0}
|
||||||
@@ -2041,7 +2041,7 @@
|
|||||||
<FormStyledButton value="Add row" on:click={insertNewRow} />
|
<FormStyledButton value="Add row" on:click={insertNewRow} />
|
||||||
{/if}
|
{/if}
|
||||||
{#if onOpenQuery}
|
{#if onOpenQuery}
|
||||||
<FormStyledButton value="Open Query" on:click={onOpenQuery} />
|
<FormStyledButton value="Open Query" on:click={() => onOpenQuery()} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user