Skip to content

Commit

Permalink
Button Text Fix in v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anaseqal authored Oct 23, 2019
1 parent 19b0637 commit 99db2df
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Actions/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,27 @@ class Action implements JsonSerializable
*/
public static $chunkCount = 200;

/**
* The text to be used for the action's confirm button.
*
* @var string
*/
public $confirmButtonText = 'Run Action';

/**
* The text to be used for the action's cancel button.
*
* @var string
*/
public $cancelButtonText = 'Cancel';

/**
* The text to be used for the action's confirmation text.
*
* @var string
*/
public $confirmText = 'Are you sure you want to run this action?';

/**
* Determine if the action is executable for the given request.
*
Expand Down Expand Up @@ -378,6 +399,9 @@ public function jsonSerialize()
'onlyOnDetail' => $this->onlyOnDetail,
'onlyOnIndex' => $this->onlyOnIndex,
'withoutConfirmation' => $this->withoutConfirmation,
'cancelButtonText' => __($this->cancelButtonText),
'confirmButtonText' => __($this->confirmButtonText),
'confirmText' => __($this->confirmText),
], $this->meta());
}
}

0 comments on commit 99db2df

Please sign in to comment.