Skip to content

Commit

Permalink
Improve back button to reduce code duplication and minor UI adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Aug 1, 2023
1 parent 4d65a52 commit 92998d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions resources/models/coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@

$config['form']['toolbar'] = [
'buttons' => [
'back' => [
'label' => 'lang:admin::lang.button_icon_back',
'class' => 'btn btn-outline-secondary',
'href' => 'igniter/coupons/coupons',
],
'save' => [
'label' => 'lang:admin::lang.button_save',
'context' => ['create', 'edit'],
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Coupons.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Coupons extends \Igniter\Admin\Classes\AdminController
],
'preview' => [
'title' => 'lang:admin::lang.form.preview_title',
'redirect' => 'igniter/coupons/coupons',
'back' => 'igniter/coupons/coupons',
],
'delete' => [
'redirect' => 'igniter/coupons/coupons',
Expand Down

0 comments on commit 92998d3

Please sign in to comment.