Skip to content

Commit

Permalink
Added enableValue & disableValue to ToggleStatusActiveButton
Browse files Browse the repository at this point in the history
  • Loading branch information
hbugdoll authored Jan 28, 2024
1 parent a05aac2 commit ece1e0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ public function ngRestActiveButtons()
[
'class' => 'luya\admin\buttons\ToggleStatusActiveButton',
'attribute' => 'is_default',
'enableValue' => 1,
'disableValue' => 0,
'uniqueStatus' => true,
'modelNameAttribute' => 'name',
'label' => 'Set default',
Expand Down

0 comments on commit ece1e0c

Please sign in to comment.