diff --git a/src/Actions/RegeneratePasswordAction.php b/src/Actions/RegeneratePasswordAction.php index 2095621..fdcf91c 100644 --- a/src/Actions/RegeneratePasswordAction.php +++ b/src/Actions/RegeneratePasswordAction.php @@ -70,4 +70,16 @@ public function shouldNotifyOnSuccess(): bool { return $this->evaluate($this->notifyOnSuccess) ?? true; } + + public function isHidden(): bool + { + $isHidden = parent::isHidden(); + + if ($isHidden) { + return true; + } + + return $this->getComponent()->isDisabled() || + $this->getComponent()->isReadOnly(); + } }