diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 01:13:28 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 01:13:31 +0900 |
| commit | 0a271e3e8aecb1ec9db3eea873b3df1ecaab8b99 (patch) | |
| tree | 0a5a6e62acf2d8e15ec69fd09f641cd75a1bcb10 /src/features/surface-host/ui/Button.svelte | |
| parent | 397ce9b65b888121d8c7e909c37dfdbffe914673 (diff) | |
| parent | 576f539670f406280f8398abf78a867d70b683b8 (diff) | |
| download | dispatch-web-0a271e3e8aecb1ec9db3eea873b3df1ecaab8b99.tar.gz dispatch-web-0a271e3e8aecb1ec9db3eea873b3df1ecaab8b99.zip | |
Merge branch 'dev' into feature/heartbeat
# Conflicts:
# src/app/App.svelte
# src/app/store.svelte.ts
# src/app/store.test.ts
# src/features/workspaces/ui/WorkspaceCard.test.ts
Diffstat (limited to 'src/features/surface-host/ui/Button.svelte')
| -rw-r--r-- | src/features/surface-host/ui/Button.svelte | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/features/surface-host/ui/Button.svelte b/src/features/surface-host/ui/Button.svelte index 62d7acf..ee9097c 100644 --- a/src/features/surface-host/ui/Button.svelte +++ b/src/features/surface-host/ui/Button.svelte @@ -1,21 +1,21 @@ <script lang="ts"> - import type { InvokeMessage } from "@dispatch/ui-contract"; - import type { ButtonFieldView } from "../logic/types"; + import type { InvokeMessage } from "@dispatch/ui-contract"; + import type { ButtonFieldView } from "../logic/types"; - let { - field, - surfaceId, - onInvoke, - }: { field: ButtonFieldView; surfaceId: string; onInvoke: (msg: InvokeMessage) => void } = - $props(); + let { + field, + surfaceId, + onInvoke, + }: { field: ButtonFieldView; surfaceId: string; onInvoke: (msg: InvokeMessage) => void } = + $props(); - function handleClick() { - onInvoke({ - type: "invoke", - surfaceId, - actionId: field.action.actionId, - }); - } + function handleClick() { + onInvoke({ + type: "invoke", + surfaceId, + actionId: field.action.actionId, + }); + } </script> <button onclick={handleClick}>{field.label}</button> |
