From 87c2f5477b6ddf916931d277100f82d3f93d3449 Mon Sep 17 00:00:00 2001 From: Ross Addison Date: Sun, 22 Oct 2023 12:00:51 +0100 Subject: [PATCH] Update ModalHelper.php --- invoice/src/Invoice/Helpers/ModalHelper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/invoice/src/Invoice/Helpers/ModalHelper.php b/invoice/src/Invoice/Helpers/ModalHelper.php index 3de80bf..6f08a70 100644 --- a/invoice/src/Invoice/Helpers/ModalHelper.php +++ b/invoice/src/Invoice/Helpers/ModalHelper.php @@ -43,16 +43,16 @@ public function modal(string $class, string $target, string $icon, string $label ->headerOptions(['class' => 'text-danger']) ->bodyOptions(['class' => 'modal-body', 'style' => 'text-align:center;',]) ->footerOptions(['class' => 'text-dark']) - ->closeButton(['tag'=>'button','label'=>"×"]) + ->withCloseButtonLabel("×") //btn_add_product will be used in invoice.js to populate the modal-placeholder below - ->toggleButton([ - 'class' => [$class], + ->withToggleOptions(['class' => [$class], 'data-bs-toggle'=>'modal', 'data-bs-keyboard'=>$keyboard, 'data-bs-target'=>$target, 'data-toggle'=>'tooltip', - 'title'=>$this->s->trans($title), - 'label' =>''. $this->s->trans($label)]) + 'title'=>$this->s->trans($title)]) + ->withToggleLabel(''. $this->s->trans($label)) + ->withToggle(true) ->begin(); echo '

'; echo '