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({ 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) {
+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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