Remove toast clear in project overview
This commit is contained in:
parent
6733c4e7a8
commit
bf01364cf3
@ -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:
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user