diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a8ff225..152d0bdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,8 @@ ### Fixed -- Fixed a bug in which the expected recipients count could fail in sendouts with very large numbers of contacts. +- Fixed a bug in which the expected recipients count could fail in sendouts with very large numbers of contacts. +- Fixed a bug in which sendout actions were unavailable on the sendout index page. ### Deprecated diff --git a/src/elements/SendoutElement.php b/src/elements/SendoutElement.php index efd514e0..9afcd952 100755 --- a/src/elements/SendoutElement.php +++ b/src/elements/SendoutElement.php @@ -1188,25 +1188,14 @@ public function setSchedule(ScheduleModel|array|string|null $schedule): void */ protected function htmlAttributes(string $context): array { - $htmlAttributes = []; - - if ($this->getIsModifiable()) { - $htmlAttributes['data-modifiable'] = true; - } - - if ($this->getIsPausable()) { - $htmlAttributes['data-pausable'] = true; - } - - if ($this->getIsResumable()) { - $htmlAttributes['data-resumable'] = true; - } - - if ($this->getIsCancellable()) { - $htmlAttributes['data-cancellable'] = true; - } - - return $htmlAttributes; + return [ + 'data' => [ + 'modifiable' => $this->getIsModifiable(), + 'pausable' => $this->getIsPausable(), + 'resumable' => $this->getIsResumable(), + 'cancellable' => $this->getIsCancellable(), + ], + ]; } /**