Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed Sep 20, 2024
1 parent 479c6c0 commit 765c657
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/Library/CrudPanel/Traits/SaveActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function getSaveAction()
}

return [
'active' => $saveCurrent,
'active' => $saveCurrent,
'options' => $dropdownOptions,
];
}
Expand Down Expand Up @@ -349,8 +349,8 @@ public function performSaveAction($itemId = null)
// if the request is AJAX, return a JSON response
if ($this->getRequest()->ajax()) {
return response()->json([
'success' => true,
'data' => $this->entry,
'success' => true,
'data' => $this->entry,
'redirect_url' => $redirectUrl,
'referrer_url' => $referrer_url ?? false,
]);
Expand All @@ -372,7 +372,7 @@ public function setupDefaultSaveActions()
{
$defaultSaveActions = [
[
'name' => 'save_and_back',
'name' => 'save_and_back',
'visible' => function ($crud) {
return $crud->hasAccess('list');
},
Expand All @@ -382,7 +382,7 @@ public function setupDefaultSaveActions()
'button_text' => trans('backpack::crud.save_action_save_and_back'),
],
[
'name' => 'save_and_edit',
'name' => 'save_and_edit',
'visible' => function ($crud) {
return $crud->hasAccess('update');
},
Expand All @@ -404,7 +404,7 @@ public function setupDefaultSaveActions()
'button_text' => trans('backpack::crud.save_action_save_and_edit'),
],
[
'name' => 'save_and_new',
'name' => 'save_and_new',
'visible' => function ($crud) {
return $crud->hasAccess('create');
},
Expand Down

0 comments on commit 765c657

Please sign in to comment.