Skip to content

Commit

Permalink
Fixed darkmode for actions buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Jan 10, 2025
1 parent ea976d6 commit ef43cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/Admin/PaymentOrderCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,15 @@ public function configureActions(Actions $actions): Actions

$emailAction = Action::new('sendEmail', 'payment_order.action.email', 'fas fa-envelope')
->linkToUrl(fn(PaymentOrder $paymentOrder): string => $this->mailToGenerator->generateContactMailLink($paymentOrder))
->setCssClass('btn btn-secondary text-dark');
->setCssClass('btn btn-secondary');

//Hide action if no contact emails are associated with department
$emailAction->displayIf(fn(PaymentOrder $paymentOrder): bool => null !== $this->mailToGenerator->generateContactMailLink($paymentOrder));

$resend_confirmation_action = Action::new('resendConfirmation', 'payment_order.action.resend_confirmation', 'fas fa-redo')
->linkToCrudAction('resendConfirmationEmail')
->displayIf(fn(PaymentOrder $paymentOrder): bool => $this->isGranted('ROLE_EDIT_PAYMENT_ORDERS') && !$paymentOrder->isConfirmed())
->setCssClass('btn btn-secondary text-dark');
->setCssClass('btn btn-secondary');

$mathematically_correct_action = Action::new('mathematicallyCorrect', 'payment_order.action.mathematically_correct', 'fas fa-check')
->linkToRoute('payment_order_check', fn (PaymentOrder $paymentOrder) => ['type' => 'mathematically_correct', 'id' => $paymentOrder->getId()])
Expand Down

0 comments on commit ef43cfe

Please sign in to comment.