loader added to notifications

This commit is contained in:
Eudes Inácio
2023-08-21 17:52:04 +01:00
parent dd1ba46b0d
commit 6342ec6140
5 changed files with 15 additions and 8 deletions
+7 -1
View File
@@ -38,6 +38,7 @@ export class ProfilePage implements OnInit {
environment = environment
taskExist = true;
taskNotExist = false;
isloading = false;
SessionStore = SessionStore;
@@ -189,6 +190,7 @@ export class ProfilePage implements OnInit {
console.log(index, i)
if(Service === "agenda") {
this.isloading = true
this.eventsService.getEvent(IdObject).subscribe((task) => {
if (Service === "agenda" && IdObject.length > 10) {
@@ -201,13 +203,15 @@ export class ProfilePage implements OnInit {
}
this.deleteNotification(index);
this.isloading = false
}, (error) => {
this.notificationdata[i].read = true;
this.isloading = false
})
} else if (Service === "gabinete-digital") {
this.isloading = true
this.processesService.GetTask(IdObject).subscribe((task) => {
if (Service === "gabinete-digital" && Object === "expedientes") {
@@ -228,9 +232,11 @@ export class ProfilePage implements OnInit {
}
this.deleteNotification(index);
this.isloading = false
}, (error) => {
this.notificationdata[i].read = true;
this.isloading = false
})