Added ImportAction on resource file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources;
|
||||
|
||||
use App\Filament\Exports\CharacteristicApproverMasterExporter;
|
||||
use App\Filament\Imports\CharacteristicApproverMasterImporter;
|
||||
use App\Filament\Resources\CharacteristicApproverMasterResource\Pages;
|
||||
use App\Models\CharacteristicApproverMaster;
|
||||
use App\Models\Machine;
|
||||
@@ -398,13 +399,13 @@ class CharacteristicApproverMasterResource extends Resource
|
||||
]),
|
||||
])
|
||||
->headerActions([
|
||||
// ImportAction::make()
|
||||
// ->label('Import Characteristics Approver Master')
|
||||
// ->color('warning')
|
||||
// ->importer(CharacteristicApproverMasterImporter::class)
|
||||
// ->visible(function () {
|
||||
// return Filament::auth()->user()->can('view import characteristic approver master');
|
||||
// }),
|
||||
ImportAction::make()
|
||||
->label('Import Characteristics Approver Master')
|
||||
->color('warning')
|
||||
->importer(CharacteristicApproverMasterImporter::class)
|
||||
->visible(function () {
|
||||
return Filament::auth()->user()->can('view import characteristic approver master');
|
||||
}),
|
||||
ExportAction::make()
|
||||
->label('Export Characteristics Approver Master')
|
||||
->color('warning')
|
||||
|
||||
Reference in New Issue
Block a user