diff --git a/demos/index.php b/demos/index.php index b9ab8b9..d5de194 100755 --- a/demos/index.php +++ b/demos/index.php @@ -116,18 +116,10 @@ public function showGridMailTemplate(): void $grid->addActionButton( 'edit', fn ($jq, $id) => $this->loader->jsLoad(['route' => 'template-edit', 'template_id' => $id]), - '', - [ - 'id' => $grid->jsRow()->data('id'), - ] ); $grid->addActionButton( 'create email from template', - fn ($jq, $id) => $this->loader->jsLoad(['route' => 'send-email', 'from_template_id' => $id]), - '', - [ - 'id' => $grid->jsRow()->data('id'), - ] + fn ($jq, $id) => $this->loader->jsLoad(['route' => 'send-email', 'from_template_id' => $id]) ); }