mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Bug solved on despacho pr
This commit is contained in:
@@ -43,7 +43,7 @@ export class ProfilePage implements OnInit {
|
||||
private storageservice: StorageService,
|
||||
private zone: NgZone,
|
||||
private platform: Platform,
|
||||
private eventtrigger: EventTrigger,
|
||||
private eventTriger: EventTrigger,
|
||||
public ThemeService: ThemeService,
|
||||
) {
|
||||
|
||||
@@ -53,6 +53,13 @@ export class ProfilePage implements OnInit {
|
||||
this.logoutOut = true
|
||||
});
|
||||
|
||||
this.eventTriger.getObservable().subscribe((event) => {
|
||||
if(event.notification == "recive") {
|
||||
this.getNotificationData();
|
||||
}
|
||||
console.log(event)
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
this.hideImage = true
|
||||
}, 2000)
|
||||
@@ -193,7 +200,7 @@ export class ProfilePage implements OnInit {
|
||||
|
||||
// this.notificationservice.tempClearArray();
|
||||
this.deleteNotification(index);
|
||||
this.eventtrigger.publishSomeData({
|
||||
this.eventTriger.publishSomeData({
|
||||
notification: "deleted"
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user