Skip to content

Commit

Permalink
Don’t show 0 badges on order index
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Mar 6, 2024
1 parent 2244649 commit c5cf19b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/elements/traits/OrderElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ protected static function defineSources(string $context = null): array
'label' => Craft::t('commerce', 'All Orders'),
'criteria' => ['isCompleted' => true],
'defaultSort' => ['dateOrdered', 'desc'],
'badgeCount' => 0,
'data' => [
'date-attr' => 'dateOrdered',
],
Expand All @@ -320,7 +319,6 @@ protected static function defineSources(string $context = null): array
'label' => Craft::t('site', $orderStatus->name),
'criteria' => $criteriaStatus,
'defaultSort' => ['dateOrdered', 'desc'],
'badgeCount' => 0,
'data' => [
'handle' => $orderStatus->handle,
'date-attr' => 'dateOrdered',
Expand Down
Loading

0 comments on commit c5cf19b

Please sign in to comment.