forked from geolba/tethys.backend
- improved vies and controllers for rejecting datasets with email for reviewer and editor role
- falsh also error via config/inertia.ts - npm updates
This commit is contained in:
parent
b06ccae603
commit
2235f3905a
12 changed files with 627 additions and 370 deletions
|
@ -31,7 +31,7 @@ declare module '@adonisjs/core/http' {
|
|||
// this.ctx!.session.flash(key, message);
|
||||
// return this;
|
||||
// });
|
||||
Response.macro('flash', function (this: Response, message: any, key?: string,) {
|
||||
Response.macro('flash', function (this: Response, message: any, key?: string) {
|
||||
if (!this.ctx) {
|
||||
throw new Error('Context is not available');
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ Response.macro('toRoute', function (this: Response, route: string) {
|
|||
declare module '@adonisjs/core/http' {
|
||||
interface Response {
|
||||
flash(message: any): Response;
|
||||
flash(key: string, message: any): Response;
|
||||
flash(message: any, key: string): Response;
|
||||
toRoute(route: string): Response;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue