diff --git a/packages/frontend-core/src/components/grid/cells/GutterCell.svelte b/packages/frontend-core/src/components/grid/cells/GutterCell.svelte index d9fd09fb6c..00b99c0711 100644 --- a/packages/frontend-core/src/components/grid/cells/GutterCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/GutterCell.svelte @@ -70,7 +70,15 @@ {/if} {/if} - {#if $config.allowExpandRows} + {#if rowSelected && $config.allowDeleteRows} +
dispatch("request-bulk-delete")}> + +
+ {:else if $config.allowExpandRows}
diff --git a/packages/frontend-core/src/components/grid/controls/DeleteButton.svelte b/packages/frontend-core/src/components/grid/controls/BulkDeleteHandler.svelte similarity index 53% rename from packages/frontend-core/src/components/grid/controls/DeleteButton.svelte rename to packages/frontend-core/src/components/grid/controls/BulkDeleteHandler.svelte index 8ca5f0920d..f87b529390 100644 --- a/packages/frontend-core/src/components/grid/controls/DeleteButton.svelte +++ b/packages/frontend-core/src/components/grid/controls/BulkDeleteHandler.svelte @@ -1,8 +1,8 @@ -{#if selectedRowCount} -
- -
-{/if} - - - diff --git a/packages/frontend-core/src/components/grid/layout/Grid.svelte b/packages/frontend-core/src/components/grid/layout/Grid.svelte index 0db7ec9108..8fd4e05196 100644 --- a/packages/frontend-core/src/components/grid/layout/Grid.svelte +++ b/packages/frontend-core/src/components/grid/layout/Grid.svelte @@ -6,7 +6,7 @@ import { createEventManagers } from "../lib/events" import { createAPIClient } from "../../../api" import { attachStores } from "../stores" - import DeleteButton from "../controls/DeleteButton.svelte" + import BulkDeleteHandler from "../controls/BulkDeleteHandler.svelte" import BetaButton from "../controls/BetaButton.svelte" import GridBody from "./GridBody.svelte" import ResizeOverlay from "../overlays/ResizeOverlay.svelte" @@ -118,7 +118,6 @@
-
@@ -146,6 +145,7 @@ {/if} +