Skip to content

Commit

Permalink
Merge pull request #25 from forxer/develop
Browse files Browse the repository at this point in the history
Fixed "Save" button
  • Loading branch information
lgtaxn authored Sep 4, 2024
2 parents 0ef8311 + 70b4ea6 commit d637771
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CHANGELOG
=========

0.17.1 (2024-09-04)
-------------------

- Fixed "Save" button


0.17.0 (2024-09-04)
-------------------

Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Delete extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'danger';

$this->text ??= Str::ucfirst(trans('action.delete'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Destroy.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Destroy extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'DELETE';

$this->variant ??= 'danger';

$this->text ??= Str::ucfirst(trans('action.delete'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Disable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Disable extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'warning';

$this->text ??= Str::ucfirst(trans('action.disable'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Disabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Disabled extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'warning';

$this->text ??= Str::ucfirst(trans('status.disabled'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Enable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Enable extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'success';

$this->text ??= Str::ucfirst(trans('action.enable'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Enabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Enabled extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'success';

$this->text ??= Str::ucfirst(trans('status.enabled'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Logout extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'POST';

$this->variant ??= 'secondary';

$this->text ??= Str::ucfirst(trans('action.logout'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/MoveDown.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class MoveDown extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'secondary';

$this->text ??= Str::ucfirst(trans('action.down'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/MoveUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class MoveUp extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'secondary';

$this->text ??= Str::ucfirst(trans('action.up'));
Expand Down
1 change: 1 addition & 0 deletions src/Components/Buttons/Actions/Restore.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Restore extends FormButton
protected function initAttributes(): void
{
$this->method ??= 'PATCH';

$this->variant ??= 'warning';

$this->text ??= Str::ucfirst(trans('action.restore'));
Expand Down
2 changes: 2 additions & 0 deletions src/Components/Buttons/Actions/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Save extends SimpleButton
{
protected function initAttributes(): void
{
$this->type = 'submit';

$this->variant ??= 'primary';

$this->text ??= Str::ucfirst(trans('action.save'));
Expand Down

0 comments on commit d637771

Please sign in to comment.