]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/RecycleBinController.php
Added recycle bin empty notification response with count
[bookstack] / app / Http / Controllers / RecycleBinController.php
index b30eddf0c4d47f1f28ab99118c85cd41a46e5ee3..3cbc99df3e3be533be8a4b73ef3be4d4d596a5bb 100644 (file)
@@ -29,7 +29,9 @@ class RecycleBinController extends Controller
         $this->checkPermission('settings-manage');
         $this->checkPermission('restrictions-manage-all');
 
-        (new TrashCan())->destroyFromAllDeletions();
+        $deleteCount = (new TrashCan())->destroyFromAllDeletions();
+
+        $this->showSuccessNotification(trans('settings.recycle_bin_empty_notification', ['count' => $deleteCount]));
         return redirect('/settings/recycle-bin');
     }
 }