File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/resources/views/crud/buttons Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ className: "bg-danger",
4747 // Show an error alert
4848 swal ({
4949 title: " {!! trans (' backpack::crud.delete_confirmation_not_title' ) ! !}" ,
50- text: " {!! trans (' backpack::crud.delete_confirmation_not_message' ) ! !}" ,
50+ text: result[ ' error ' ] ? result[ ' error ' ] : " {!! trans (' backpack::crud.delete_confirmation_not_message' ) ! !}" ,
5151 icon: " error" ,
52- timer: 2000 ,
52+ timer: 4000 ,
5353 buttons: false ,
5454 });
5555 } else {
@@ -78,7 +78,7 @@ className: "bg-danger",
7878 // Show an alert with the result
7979 swal ({
8080 title: " {!! trans (' backpack::crud.delete_confirmation_not_title' ) ! !}" ,
81- text: " {!! trans (' backpack::crud.delete_confirmation_not_message' ) ! !}" ,
81+ text: result[ ' error ' ] ? result[ ' error ' ] : " {!! trans (' backpack::crud.delete_confirmation_not_message' ) ! !}" ,
8282 icon: " error" ,
8383 timer: 4000 ,
8484 buttons: false ,
@@ -94,4 +94,4 @@ className: "bg-danger",
9494 // make it so that the function above is run after each DataTable draw event
9595 // crud.addFunctionToDataTablesDrawEventQueue('deleteEntry');
9696 </script >
97- @if (! $crud -> request -> ajax () ) @endpush @endif
97+ @if (! $crud -> request -> ajax () ) @endpush @endif
You can’t perform that action at this time.
0 commit comments