wip import
This commit is contained in:
1 parent
048989fed8
commit
4fa4e1a611
11 files changed
+48902
-141
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ class StatistikoImportForm
|
||||
->acceptedFileTypes([
|
||||
'application/vnd.ms-excel',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'text/csv', // Optional: include if you accept CSV too
|
||||
// 'text/csv', // Optional: include if you accept CSV too
|
||||
]),
|
||||
])->columns(1);
|
||||
}
|
||||
|
||||
+3
-14
@@ -60,25 +60,14 @@ class StatistikoImportsTable
|
||||
->recordActions([
|
||||
ActionGroup::make([
|
||||
Action::make('Import')
|
||||
->label('Import (fast)')
|
||||
->label('Import to DB')
|
||||
->icon('phosphor-database')
|
||||
->action(function ($record) {
|
||||
StatistikoImporter::run('import', $record);
|
||||
})->successNotification(
|
||||
->action(fn ($record) => StatistikoImporter::run($record))
|
||||
->successNotification(
|
||||
Notification::make()
|
||||
->info()
|
||||
->title('Import started')
|
||||
),
|
||||
Action::make('Update')
|
||||
->label('Update or Import (slow)')
|
||||
->icon('phosphor-database')
|
||||
->action(function ($record) {
|
||||
StatistikoImporter::run('update', $record);
|
||||
})->successNotification(
|
||||
Notification::make()
|
||||
->info()
|
||||
->title('Import & Update started')
|
||||
),
|
||||
DeleteAction::make()
|
||||
->label('Delete file'),
|
||||
]),
|
||||
|
||||
Reference in new issue
Block a user