Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(frontend:config): enhance notifications with `maxOpened` and `autoDismiss` properties

johavencf850bf43f61
diff --git a/frontend/src/app/app.config.ts b/frontend/src/app/app.config.ts
index a341c7a1..c9fbac6a 100644
--- a/frontend/src/app/app.config.ts
+++ b/frontend/src/app/app.config.ts
@@ -35,7 +35,13 @@ export const appConfig: ApplicationConfig = {
}),
provideL10nIntl(),
provideAnimations(),
- provideToastr({ positionClass: 'toast-bottom-right', preventDuplicates: false, timeOut: 7000 }),
+ provideToastr({
+ positionClass: 'toast-bottom-right',
+ preventDuplicates: false,
+ maxOpened: 6,
+ autoDismiss: true,
+ timeOut: 6000
+ }),
{ provide: TooltipConfig, useFactory: getToolTipConfig },
BsModalService,
importProvidersFrom(SocketIoModule.forRoot(webSocketOptions))