mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
loader added to notifications
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user