mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 17:36:01 +00:00
table data auto refresh
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
export let command;
|
||||
export let component = ToolStripButton;
|
||||
export let hideDisabled = false;
|
||||
export let buttonLabel = null;
|
||||
|
||||
$: cmd = Object.values($commandsCustomized).find((x: any) => x.id == command) as any;
|
||||
</script>
|
||||
@@ -29,6 +30,6 @@
|
||||
disabled={!cmd.enabled}
|
||||
{...$$restProps}
|
||||
>
|
||||
{cmd.toolbarName || cmd.name}
|
||||
{buttonLabel || cmd.toolbarName || cmd.name}
|
||||
</svelte:component>
|
||||
{/if}
|
||||
|
||||
@@ -5,7 +5,16 @@
|
||||
import ToolStripSplitDropDownButton from './ToolStripSplitDropDownButton.svelte';
|
||||
|
||||
export let commands;
|
||||
$: menu = _.compact(commands).map(command => ({ command }));
|
||||
export let hideDisabled = false;
|
||||
export let buttonLabel = null;
|
||||
|
||||
$: menu = _.compact(commands).map(command => (_.isString(command) ? { command } : command));
|
||||
</script>
|
||||
|
||||
<ToolStripCommandButton command={commands[0]} component={ToolStripSplitDropDownButton} {menu} />
|
||||
<ToolStripCommandButton
|
||||
command={commands[0]}
|
||||
component={ToolStripSplitDropDownButton}
|
||||
{menu}
|
||||
{hideDisabled}
|
||||
{buttonLabel}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user