Skip to content

Commit

Permalink
adding back action
Browse files Browse the repository at this point in the history
  • Loading branch information
abdosaeedelhassan committed Aug 10, 2024
1 parent 417784d commit 37cf7a1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ class EditEmailTemplate extends EditRecord
protected function getActions(): array
{
return [
Actions\ViewAction::make()->label('Preview')->modalContent(fn (EmailTemplate $record): View => view(
Actions\Action::make('back')->label(__('Back'))
->url(EmailTemplateResource::getUrl())
,
Actions\ViewAction::make()->label(__('Preview'))->modalContent(fn (EmailTemplate $record): View => view(
'vb-email-templates::forms.components.iframe',
['record' => $record],
))->form(null),
Expand Down

0 comments on commit 37cf7a1

Please sign in to comment.