Front: fix entry removed from collection not updating UI
This commit is contained in:
1 parent
302f2830ff
commit
1e1384d777
10 files changed
+170
-73
No files matched your search
+3
-3
@@ -3,7 +3,7 @@ import { FormControl } from '@angular/forms';
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||
import { CollectionService } from '../../../../core/services/collection.service';
|
||||
import { NotificationPopupComponent } from '../../notification-popup/notification-popup.component';
|
||||
import { NotificationService } from '../../../services/notification.service';
|
||||
import { ToastService } from '../../../services/toast.service';
|
||||
import { Collection } from '../../../models/collection.model';
|
||||
|
||||
import {
|
||||
@@ -50,7 +50,7 @@ export class UserCollectionsModalComponent implements OnInit {
|
||||
public dialogRef: MatDialogRef<UserCollectionsModalComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any,
|
||||
private collectionService: CollectionService,
|
||||
private notificationService: NotificationService
|
||||
private toastService: ToastService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -174,6 +174,6 @@ export class UserCollectionsModalComponent implements OnInit {
|
||||
|
||||
showNotification(title: string, message: string, type: string): void {
|
||||
// this.notificationComponent.showNotification(message, type);
|
||||
this.notificationService.showNotification(title, message, type);
|
||||
this.toastService.show(title, message, type);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user