indicator of changed rows in save button

This commit is contained in:
Jan Prochazka
2024-08-09 17:36:22 +02:00
parent a3b7490849
commit 49597b4b01
6 changed files with 49 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
export let disabled = false;
export let icon = null;
export let title = null;
export let iconAfter = null;
const dispatch = createEventDispatcher();
@@ -18,6 +19,9 @@
<div class="inner" class:disabled on:click={handleClick}>
<span class="icon" class:disabled><FontIcon {icon} /></span>
<slot />
{#if iconAfter}
<span class="icon" class:disabled><FontIcon icon={iconAfter} /></span>
{/if}
</div>
</div>

View File

@@ -17,6 +17,7 @@
export let component = ToolStripButton;
export let hideDisabled = false;
export let buttonLabel = null;
export let iconAfter = null;
$: cmd = Object.values($commandsCustomized).find((x: any) => x.id == command) as any;
</script>
@@ -28,6 +29,7 @@
icon={cmd.icon}
on:click={cmd.onClick}
disabled={!cmd.enabled}
{iconAfter}
{...$$restProps}
>
{buttonLabel || cmd.toolbarName || cmd.name}