mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-24 07:42:07 +03:00
Created solution for JS translations
Also tidied up existing components and JS
This commit is contained in:
@ -117,17 +117,6 @@ abstract class Controller extends BaseController
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a json respons with a message attached as a header.
|
||||
* @param $data
|
||||
* @param string $successMessage
|
||||
* @return $this
|
||||
*/
|
||||
protected function jsonSuccess($data, $successMessage = "")
|
||||
{
|
||||
return response()->json($data)->header('message-success', $successMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send back a json error message.
|
||||
* @param string $messageText
|
||||
|
Reference in New Issue
Block a user