fix conflict issue in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 20s
Laravel Pint / pint (pull_request) Failing after 2m32s
Laravel Larastan / larastan (pull_request) Failing after 5m36s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 20s
Laravel Pint / pint (pull_request) Failing after 2m32s
Laravel Larastan / larastan (pull_request) Failing after 5m36s
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Filament\Resources;
|
||||
|
||||
use App\Filament\Exports\ItemCharacteristicExporter;
|
||||
use App\Filament\Imports\ItemCharacteristicImporter;
|
||||
use App\Filament\Resources\ItemCharacteristicResource\Pages;
|
||||
use App\Filament\Resources\ItemCharacteristicResource\RelationManagers;
|
||||
use App\Models\Item;
|
||||
@@ -15,6 +17,8 @@ use Filament\Tables;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
use Filament\Tables\Actions\ExportAction;
|
||||
use Filament\Tables\Actions\ImportAction;
|
||||
|
||||
class ItemCharacteristicResource extends Resource
|
||||
{
|
||||
@@ -924,6 +928,22 @@ class ItemCharacteristicResource extends Resource
|
||||
Tables\Actions\ForceDeleteBulkAction::make(),
|
||||
Tables\Actions\RestoreBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->headerActions([
|
||||
ImportAction::make()
|
||||
->label('Import Item Characteristics')
|
||||
->color('warning')
|
||||
->importer(ItemCharacteristicImporter::class)
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view import item characteristics');
|
||||
}),
|
||||
ExportAction::make()
|
||||
->label('Export Item Characteristics')
|
||||
->color('warning')
|
||||
->exporter(ItemCharacteristicExporter::class)
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view export item characteristics');
|
||||
}),
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user