table data auto refresh

This commit is contained in:
Jan Prochazka
2022-06-30 08:53:01 +02:00
parent 08b7b1870c
commit 179bd1f6b1
3 changed files with 120 additions and 6 deletions

View File

@@ -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}