Skip to content

Commit

Permalink
Small beauty tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryMoustache committed Jun 29, 2023
1 parent d02a98e commit dc1c855
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/Filament/MailHistoryResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ public static function table(Table $table): Table
]);
}

public static function getRelations(): array
{
return [
//
];
}

public static function getPages(): array
{
return [
Expand Down
6 changes: 0 additions & 6 deletions src/Filament/MailTemplateResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,13 @@ public static function table(Table $table): Table

LocalesColumn::make('online'),
])
->filters([
//
])
->actions([
Tables\Actions\Action::make('preview')
->url(fn (MailTemplate $record) => self::getUrl('preview', $record))
->label(__('filament-mail-templates::preview.button label'))
->icon('heroicon-o-eye'),

Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}

Expand Down
5 changes: 5 additions & 0 deletions src/Filament/MailTemplateResource/Pages/EditMailTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ class EditMailTemplate extends EditRecord
use HasTranslations;

protected static string $resource = MailTemplateResource::class;

protected function getActions(): array
{
return [];
}
}

0 comments on commit dc1c855

Please sign in to comment.