mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Added recycle bin empty notification response with count
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user