Remove toast clear in project overview

This commit is contained in:
Adina Țeudan 2020-11-03 13:51:58 +02:00
parent 6733c4e7a8
commit bf01364cf3
2 changed files with 2 additions and 7 deletions

View File

@ -32,7 +32,7 @@ export class NotificationService {
});
}
showToastNotification(
public showToastNotification(
message: string,
title?: string,
notificationType: NotificationType = NotificationType.INFO,
@ -43,7 +43,6 @@ export class NotificationService {
return this._toastr.error(message, title, options);
case NotificationType.SUCCESS:
return this._toastr.success(message, title, options);
break;
case NotificationType.WARNING:
return this._toastr.warning(message, title, options);
case NotificationType.INFO:

View File

@ -43,7 +43,6 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
@ViewChild('sortingComponent', { static: true }) public sortingComponent: SortingComponent;
public sortingOption: SortingOption = { column: 'added', order: 'desc' };
private _rulesChangedToast: ActiveToast<any>;
constructor(
public readonly appStateService: AppStateService,
@ -79,9 +78,6 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
this._fileDropOverlayService.cleanupFileDropHandling();
if (this._rulesChangedToast && this._rulesChangedToast.toastRef) {
this._rulesChangedToast.toastRef.close();
}
}
public get user() {
@ -116,7 +112,7 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
return;
}
this._rulesChangedToast = this._notificationService.showToastNotification(
this._notificationService.showToastNotification(
`${this._translateService.instant(
'project-overview.new-rule.toast.message.label'
)} <span class="pill">${this._translateService.instant(