Skip to content

Commit dfe8d3e

Browse files
authored
Merge pull request #2054 from HarshMN2345/fix-PRO-1916-unable-to-delete-file-from-bucket
2 parents 25eb4df + 6e498b1 commit dfe8d3e

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/+page.svelte

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,15 @@
169169
</Table.Cell>
170170
<Table.Cell column="actions" {root}>
171171
<Popover let:toggle placement="bottom-start" padding="none">
172-
<Button text icon ariaLabel="more options" on:click={toggle}>
172+
<Button
173+
text
174+
icon
175+
ariaLabel="more options"
176+
on:click={(e) => {
177+
e.stopPropagation();
178+
e.preventDefault();
179+
toggle();
180+
}}>
173181
<Icon icon={IconDotsHorizontal} size="s" />
174182
</Button>
175183
<ActionMenu.Root slot="tooltip">
@@ -178,7 +186,9 @@
178186
</ActionMenu.Item.Anchor>
179187
<ActionMenu.Item.Button
180188
leadingIcon={IconTrash}
181-
on:click={() => {
189+
on:click={(e) => {
190+
e.stopPropagation();
191+
e.preventDefault();
182192
selectedFile = file;
183193
showDelete = true;
184194
}}>

src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/deleteFile.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
</script>
3333

3434
<Confirm {onSubmit} title="Delete file" bind:open={showDelete} bind:error>
35-
Are you sure you want to delete <b>{file.name}</b>?
35+
<p>Are you sure you want to delete <b>{file.name}</b>?</p>
3636
</Confirm>

0 commit comments

Comments
 (0)