Skip to content

Commit df99ce0

Browse files
committed
Improved the delete dashboard modal
1 parent 7e5b70c commit df99ce0

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.metrics.custom.$dashboardId

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.metrics.custom.$dashboardId/route.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ export default function Page() {
198198
// Widget limits
199199
const widgetLimitPerDashboard = useWidgetLimitPerDashboard();
200200
const planLimits = (plan?.v3Subscription?.plan?.limits as any)?.metricWidgetsPerDashboard;
201-
const canExceedWidgets =
202-
typeof planLimits === "object" && planLimits.canExceed === true;
201+
const canExceedWidgets = typeof planLimits === "object" && planLimits.canExceed === true;
203202

204203
// Build the action URLs - both use the resource route to avoid full page renders on POST
205204
const widgetActionUrl = `/resources/orgs/${organization.slug}/projects/${project.slug}/env/${environment.slug}/dashboards/${friendlyId}/widgets`;
@@ -435,8 +434,8 @@ export default function Page() {
435434
<div className="flex w-full items-center justify-between gap-6">
436435
{widgetIsAtLimit ? (
437436
<Header3 className="text-error">
438-
You've used all {widgetLimits.limit} of your available widgets. Upgrade your plan
439-
to enable more.
437+
You've used all {widgetLimits.limit} of your available widgets. Upgrade your
438+
plan to enable more.
440439
</Header3>
441440
) : (
442441
<Header3>
@@ -623,14 +622,14 @@ function DeleteDashboardDialog({ title }: { title: string }) {
623622
<DialogContent className="sm:max-w-md">
624623
<DialogHeader>Delete dashboard</DialogHeader>
625624
<div className="mb-2 mt-4 flex flex-col gap-2">
626-
<Paragraph variant="small">
625+
<Paragraph>
627626
Are you sure you want to delete <strong>"{title}"</strong>? This action cannot be undone
628627
and all widgets on this dashboard will be permanently removed.
629628
</Paragraph>
630629
</div>
631630
<DialogFooter>
632631
<DialogClose asChild>
633-
<Button variant="tertiary/medium">Cancel</Button>
632+
<Button variant="secondary/medium">Cancel</Button>
634633
</DialogClose>
635634
<Form method="post">
636635
<Button

0 commit comments

Comments
 (0)