- 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:
Kaimbacher 2024-09-26 13:51:35 +02:00
parent b06ccae603
commit 2235f3905a
12 changed files with 627 additions and 370 deletions

View file

@ -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;
}
}