podman-desktop/packages/renderer/src/lib/image/ActionsMenu.svelte
Philippe Martin bb1c3c0fbd
chore: enable the @typescript-eslint/explicit-function-return-type for renderer part (#10705)
* fix: eslint config
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: components
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: store
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: window mocks
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: components 2/x
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: components 3/x
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: rebase
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: components 5/x
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: components 6/x
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: typo
Signed-off-by: Philippe Martin <phmartin@redhat.com>

* fix: rebase
Signed-off-by: Philippe Martin <phmartin@redhat.com>
2025-01-20 14:30:31 +01:00

16 lines
457 B
Svelte

<script lang="ts">
import { DropdownMenu } from '@podman-desktop/ui-svelte';
import FlatMenu from '../ui/FlatMenu.svelte';
export let dropdownMenu = false;
export let dropdownMenuAsMenuActionItem = false;
export let onBeforeToggle = (): void => {};
</script>
{#if dropdownMenu}
<DropdownMenu shownAsMenuActionItem={dropdownMenuAsMenuActionItem} onBeforeToggle={onBeforeToggle}
><slot /></DropdownMenu>
{:else}
<FlatMenu><slot /></FlatMenu>
{/if}