mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
PR have the same actions that MD have on events to aprove
This commit is contained in:
@@ -140,6 +140,7 @@ export class NotificationsService {
|
||||
this.eventtrigger.publishSomeData({
|
||||
notification: "recive"
|
||||
})
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
@@ -176,6 +177,7 @@ export class NotificationsService {
|
||||
|
||||
|
||||
|
||||
|
||||
this.storageService.store("Notifications", result)
|
||||
}).catch((error) => {
|
||||
if (!error) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user