mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-21 15:36:58 +00:00
Refactored notification showing and global view data
This commit is contained in:
parent
60d0f96cd7
commit
2a2cc858f0
15 changed files with 102 additions and 58 deletions
app/Http/Controllers
|
@ -254,7 +254,7 @@ class BookshelfController extends Controller
|
|||
$this->checkOwnablePermission('restrictions-manage', $shelf);
|
||||
|
||||
$this->entityRepo->updateEntityPermissionsFromRequest($request, $shelf);
|
||||
session()->flash('success', trans('entities.shelves_permissions_updated'));
|
||||
$this->showSuccessNotification( trans('entities.shelves_permissions_updated'));
|
||||
return redirect($shelf->getUrl());
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ class BookshelfController extends Controller
|
|||
$this->checkOwnablePermission('restrictions-manage', $shelf);
|
||||
|
||||
$updateCount = $this->entityRepo->copyBookshelfPermissions($shelf);
|
||||
session()->flash('success', trans('entities.shelves_copy_permission_success', ['count' => $updateCount]));
|
||||
$this->showSuccessNotification( trans('entities.shelves_copy_permission_success', ['count' => $updateCount]));
|
||||
return redirect($shelf->getUrl());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue