@@ -359,23 +359,12 @@ public function setActions( CrudEntry $entry, $namespace )
359
359
$ entry ->$ label = (string ) ns ()->currency ->define ( $ entry ->$ label );
360
360
}
361
361
362
- // you can make changes here
363
- $ entry ->addAction ( 'edit ' , [
364
- 'label ' => __ ( 'Edit ' ),
365
- 'namespace ' => 'edit ' ,
366
- 'type ' => 'GOTO ' ,
367
- 'url ' => ns ()->url ( '/dashboard/ ' . $ this ->slug . '/edit/ ' . $ entry ->id ),
368
- ] );
369
-
370
- $ entry ->addAction ( 'delete ' , [
371
- 'label ' => __ ( 'Delete ' ),
372
- 'namespace ' => 'delete ' ,
373
- 'type ' => 'DELETE ' ,
374
- 'url ' => ns ()->url ( '/api/crud/ns.procurements-products/ ' . $ entry ->id ),
375
- 'confirm ' => [
376
- 'message ' => __ ( 'Would you like to delete this ? ' ),
377
- ],
378
- ] );
362
+ $ entry ->action (
363
+ label: __ ( 'Edit ' ),
364
+ identifier: 'edit ' ,
365
+ type: 'GOTO ' ,
366
+ url: ns ()->url ( '/dashboard/ ' . $ this ->slug . '/edit/ ' . $ entry ->id ),
367
+ );
379
368
380
369
return $ entry ;
381
370
}
@@ -447,13 +436,7 @@ public function getLinks(): array
447
436
public function getBulkActions (): array
448
437
{
449
438
return Hook::filter ( $ this ->namespace . '-bulk ' , [
450
- [
451
- 'label ' => __ ( 'Delete Selected Groups ' ),
452
- 'identifier ' => 'delete_selected ' ,
453
- 'url ' => ns ()->route ( 'ns.api.crud-bulk-actions ' , [
454
- 'namespace ' => $ this ->namespace ,
455
- ] ),
456
- ],
439
+ // ...
457
440
] );
458
441
}
459
442
0 commit comments