Skip to content

Commit 31fc9e1

Browse files
committed
Show the delete alerts button in the popover
1 parent 2bdbedc commit 31fc9e1

File tree

1 file changed

+10
-8
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.alerts

1 file changed

+10
-8
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.alerts/route.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,19 @@ export default function Page() {
229229
<TableCellMenu
230230
isSticky
231231
popoverContent={
232-
alertChannel.enabled ? (
233-
<DisableAlertChannelButton id={alertChannel.id} />
234-
) : (
235-
<EnableAlertChannelButton id={alertChannel.id} />
236-
)
232+
<>
233+
{alertChannel.enabled ? (
234+
<DisableAlertChannelButton id={alertChannel.id} />
235+
) : (
236+
<EnableAlertChannelButton id={alertChannel.id} />
237+
)}
238+
<DeleteAlertChannelButton id={alertChannel.id} />
239+
</>
237240
}
238241
className={
239242
alertChannel.enabled ? "" : "group-hover/table-row:bg-charcoal-800/50"
240243
}
241-
>
242-
<DeleteAlertChannelButton id={alertChannel.id} />
243-
</TableCellMenu>
244+
/>
244245
</TableRow>
245246
))
246247
) : (
@@ -351,6 +352,7 @@ function DeleteAlertChannelButton(props: { id: string }) {
351352
name="action"
352353
value="delete"
353354
fullWidth
355+
textAlignLeft
354356
type="submit"
355357
variant="small-menu-item"
356358
LeadingIcon={TrashIcon}

0 commit comments

Comments
 (0)