mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +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({
|
this.eventtrigger.publishSomeData({
|
||||||
notification: "recive"
|
notification: "recive"
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -176,6 +177,7 @@ export class NotificationsService {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.storageService.store("Notifications", result)
|
this.storageService.store("Notifications", result)
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
|
|||||||
@@ -311,9 +311,9 @@ export class TaskService {
|
|||||||
|
|
||||||
async loadEventosParaAprovacao() {
|
async loadEventosParaAprovacao() {
|
||||||
this.showLoaderNum++
|
this.showLoaderNum++
|
||||||
|
console.log('PR')
|
||||||
// PR dont have event to approve
|
// PR dont have event to approve
|
||||||
if(this.SessionStore.user.Profile != 'PR') {
|
/* if(this.SessionStore.user.Profile != 'PR') { */
|
||||||
try {
|
try {
|
||||||
for(let calendar of this.eventService.calendarNamesAry) {
|
for(let calendar of this.eventService.calendarNamesAry) {
|
||||||
if(calendar == 'Meu calendario') {
|
if(calendar == 'Meu calendario') {
|
||||||
@@ -345,7 +345,7 @@ export class TaskService {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
/* } */
|
||||||
|
|
||||||
this.showLoaderNum--
|
this.showLoaderNum--
|
||||||
|
|
||||||
|
|||||||
@@ -96,9 +96,9 @@ export class EventListPage implements OnInit {
|
|||||||
async LoadToApproveEvents() {
|
async LoadToApproveEvents() {
|
||||||
|
|
||||||
|
|
||||||
if(SessionStore.user.Profile == 'PR') {
|
/* if(SessionStore.user.Profile == 'PR') {
|
||||||
return false
|
return false
|
||||||
}
|
} */
|
||||||
|
|
||||||
this.showLoader = true;
|
this.showLoader = true;
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export class HeaderPage implements OnInit {
|
|||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
this.hideSearch();
|
this.hideSearch();
|
||||||
this.notificationLengthData();
|
/* this.notificationLengthData(); */
|
||||||
this.getProfilpicture();
|
this.getProfilpicture();
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -115,7 +115,7 @@ export class HeaderPage implements OnInit {
|
|||||||
await this.storageservice.get("Notifications").then((value) => {
|
await this.storageservice.get("Notifications").then((value) => {
|
||||||
|
|
||||||
|
|
||||||
/* var data = JSON.parse(value); */
|
|
||||||
this.notificationLength = value.length;
|
this.notificationLength = value.length;
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user