Skip to content

Commit 7ce18be

Browse files
authored
Merge pull request #2135 from appwrite/fix-single-action-menu
2 parents 39cabbd + 2aa4f38 commit 7ce18be

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/routes/(console)/organization-[organization]/billing/billingAddress.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
</Layout.Stack>
103103
</Card.Base>
104104
{:else}
105+
{@const hasBillingAddresses = $addressList.billingAddresses.length}
105106
<Card.Base>
106107
<Layout.Stack justifyContent="center" alignItems="center" gap="m">
107108
<Popover let:toggle padding="none" placement="bottom-start">
@@ -121,7 +122,9 @@
121122
<span>{address.country}</span>
122123
</ActionMenu.Item.Button>
123124
{/each}
124-
<Divider />
125+
{#if hasBillingAddresses}
126+
<Divider />
127+
{/if}
125128
<ActionMenu.Item.Button
126129
leadingIcon={IconPlus}
127130
on:click={() => (showCreate = true)}>

src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,9 @@
249249
</Layout.Stack>
250250
</ActionMenu.Item.Button>
251251
{/each}
252+
253+
<Divider />
252254
{/if}
253-
<Divider />
254255
<ActionMenu.Item.Button
255256
leadingIcon={IconPlus}
256257
on:click={(e) => {
@@ -284,8 +285,9 @@
284285
</Layout.Stack>
285286
</ActionMenu.Item.Button>
286287
{/each}
288+
289+
<Divider />
287290
{/if}
288-
<Divider />
289291
<ActionMenu.Item.Button
290292
leadingIcon={IconPlus}
291293
on:click={(e) => {

0 commit comments

Comments
 (0)