1
0
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:
Dan Brown
2020-10-03 18:53:09 +01:00
parent 04197e393a
commit ff7cbd14fc
3 changed files with 23 additions and 8 deletions

View 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');
}
}