Skip to content

Commit

Permalink
Fix main dashboard card URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Dec 21, 2024
1 parent 6d872c6 commit 19ad987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Nova/Dashboards/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function cards(): array
return $cards;
}

if (request()->is('nova-api/metrics/*-received-*')) {
if (request()->is('nova-api/dashboards/cards/main/metrics/*-received-*')) {
$parts = Str::of(Str::of(request()->path())->explode('/')->last())->explode('-');
$type = $parts->first();
$id = intval($parts->last());
Expand All @@ -153,7 +153,7 @@ public function cards(): array
}
}

if (request()->is('nova-api/metrics/emergency-contact-*')) {
if (request()->is('nova-api/dashboards/cards/main/metrics/emergency-contact-*')) {
$parts = Str::of(Str::of(request()->path())->explode('/')->last())->explode('-');
$id = intval($parts->last());

Expand All @@ -162,7 +162,7 @@ public function cards(): array
];
}

if (request()->is('nova-api/metrics/active-attendance-breakdown-event-*')) {
if (request()->is('nova-api/dashboards/cards/main/metrics/active-attendance-breakdown-event-*')) {
$parts = Str::of(Str::of(request()->path())->explode('/')->last())->explode('-');
$id = intval($parts->last());

Expand All @@ -173,7 +173,7 @@ public function cards(): array
];
}

if (request()->is('nova-api/metrics/rsvp-source-breakdown-*')) {
if (request()->is('nova-api/dashboards/cards/main/metrics/rsvp-source-breakdown-*')) {
$parts = Str::of(Str::of(request()->path())->explode('/')->last())->explode('-');
$id = intval($parts->last());

Expand Down

0 comments on commit 19ad987

Please sign in to comment.