Skip to content

Commit

Permalink
Fix demo grid
Browse files Browse the repository at this point in the history
  • Loading branch information
abbadon1334 committed Feb 27, 2023
1 parent 552445e commit 5801633
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions demos/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])
);
}

Expand Down

0 comments on commit 5801633

Please sign in to comment.