Updated navigation, download, upload, and delete icon on resource file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-04-02 10:50:25 +05:30
parent c9794508a2
commit ea130fab4d

View File

@@ -22,7 +22,7 @@ class TestingTempResource extends Resource
{
protected static ?string $model = TestingTemp::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
protected static ?string $navigationIcon = 'heroicon-c-circle-stack';
protected static ?string $navigationGroup = 'IIOT Temp';
@@ -36,7 +36,7 @@ class TestingTempResource extends Resource
->required()
->searchable()
// ->preload()
// ->nullable(),
->nullable()
->reactive()
->columnSpan(1)
->options(function (callable $get) {
@@ -151,6 +151,7 @@ class TestingTempResource extends Resource
Forms\Components\Actions::make([
Action::make('uploadNow')
->label('Upload File')
->icon('heroicon-c-cloud-arrow-up')
->color('success')
->requiresConfirmation(function (callable $get) {
$filePath = $get('attachment');
@@ -231,6 +232,7 @@ class TestingTempResource extends Resource
Action::make('downloadAttachment')
->label('Download File')
->icon('heroicon-c-cloud-arrow-down')
->color('warning')
->requiresConfirmation(function (callable $get) {
$filePath = $get('selected_file');
@@ -281,6 +283,7 @@ class TestingTempResource extends Resource
Action::make('deleteAttachment')
->label('Delete File')
->icon('heroicon-c-trash')
->color('danger')
->requiresConfirmation(function (callable $get) {
$filePath = $get('selected_file');