diff --git a/src/app/services/notification.service.ts b/src/app/services/notification.service.ts index e23db1f78f2d983299041488806daec78dd1b0cc..6df03a5c3757fee1e2e4ebf77359fe8d04c045ed 100644 --- a/src/app/services/notification.service.ts +++ b/src/app/services/notification.service.ts @@ -24,13 +24,19 @@ export class NotificationService { /** * By default, the error is displayed until clicked on. */ - public showError(title: string, message = '', timeOut = 0): ActiveToast<unknown> { + public showError(title: string, message = '', timeOut = 0, options?: any): ActiveToast<unknown> { return this.toastr.error(message, title, { timeOut: timeOut, disableTimeOut: timeOut === 0, + enableHtml: true, + ...options, }); } + public removeToast(toastId: number): void { + this.toastr.remove(toastId); + } + public showInfo(title: string, message = '', timeOut = 10000): ActiveToast<unknown> { return this.toastr.info(message, title, { timeOut: timeOut,