PR have the same actions that MD have on events to aprove

This commit is contained in:
Eudes Inácio
2023-08-30 11:17:17 +01:00
parent 3d986e864c
commit bf1337f5db
5 changed files with 15 additions and 13 deletions
@@ -140,6 +140,7 @@ export class NotificationsService {
this.eventtrigger.publishSomeData({
notification: "recive"
})
}
);
@@ -174,6 +175,7 @@ export class NotificationsService {
console.log(result);
this.storageService.store("Notifications", result)
+3 -3
View File
@@ -311,9 +311,9 @@ export class TaskService {
async loadEventosParaAprovacao() {
this.showLoaderNum++
console.log('PR')
// PR dont have event to approve
if(this.SessionStore.user.Profile != 'PR') {
/* if(this.SessionStore.user.Profile != 'PR') { */
try {
for(let calendar of this.eventService.calendarNamesAry) {
if(calendar == 'Meu calendario') {
@@ -345,7 +345,7 @@ export class TaskService {
} catch (error) {
}
}
/* } */
this.showLoaderNum--
@@ -96,9 +96,9 @@ export class EventListPage implements OnInit {
async LoadToApproveEvents() {
if(SessionStore.user.Profile == 'PR') {
/* if(SessionStore.user.Profile == 'PR') {
return false
}
} */
this.showLoader = true;
+2 -2
View File
@@ -77,7 +77,7 @@ export class HeaderPage implements OnInit {
async ngOnInit() {
this.hideSearch();
this.notificationLengthData();
/* this.notificationLengthData(); */
this.getProfilpicture();
}
@@ -115,7 +115,7 @@ export class HeaderPage implements OnInit {
await this.storageservice.get("Notifications").then((value) => {
/* var data = JSON.parse(value); */
this.notificationLength = value.length;
}).catch((error) => {
File diff suppressed because one or more lines are too long