mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
agendas order
This commit is contained in:
@@ -51,6 +51,8 @@ export class EventsService {
|
||||
|
||||
calendarNamesAry = []
|
||||
calendarNamesAryNoPr = []
|
||||
calendarNamesAryNoPrNMD = []
|
||||
calendarNamesAryOnlyMD = []
|
||||
calendarNamesAryReverse = []
|
||||
calendarNamesAryPR = []
|
||||
|
||||
@@ -60,6 +62,8 @@ export class EventsService {
|
||||
|
||||
myCalendarNames = {}
|
||||
hasAnyCalendar = false
|
||||
|
||||
HasMdGPR = false
|
||||
|
||||
onCalendarFinishLoad = new Subscribe({execute : false, deleteOnExecute: true})
|
||||
|
||||
@@ -108,6 +112,10 @@ export class EventsService {
|
||||
this.calendarNamesAryNoPr = []
|
||||
this.calendarNamesAryPR = []
|
||||
|
||||
|
||||
this.calendarNamesAryNoPrNMD = []
|
||||
this.calendarNamesAryOnlyMD = []
|
||||
|
||||
this.hasSharedCalendar = false
|
||||
this.hasSharedOficial = false
|
||||
this.hasSharedPessoal = false
|
||||
@@ -115,6 +123,8 @@ export class EventsService {
|
||||
this.hasOwnCalendar = false
|
||||
this.hasOwnOficial = false
|
||||
this.hasOwnPessoal = false
|
||||
this.HasMdGPR = false
|
||||
|
||||
|
||||
if (SessionStore.user) {
|
||||
if (SessionStore.user.Profile == 'MDGPR') {
|
||||
@@ -308,6 +318,22 @@ export class EventsService {
|
||||
|
||||
}
|
||||
|
||||
this.calendarNamesAryNoPrNMD = this.calendarNamesAryNoPr.filter((e)=> {
|
||||
return e.Role != 'Ministro e Director do Gabinete do PR' && e.Role != 'Presidente da República'
|
||||
})
|
||||
|
||||
this.calendarNamesAryOnlyMD = this.calendarNamesAryNoPr.filter((e)=> {
|
||||
return e.Role == 'Ministro e Director do Gabinete do PR'
|
||||
})
|
||||
|
||||
|
||||
this.HasMdGPR = this.calendarNamesAryNoPr.find( (e)=> {
|
||||
if(e.Role == 'Ministro e Director do Gabinete do PR') {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
||||
|
||||
if(SessionStore.user.OwnerCalendars.length == 0 && SessionStore.user.SharedCalendars.length == 0) {
|
||||
this.hasAnyCalendar = false
|
||||
|
||||
Reference in New Issue
Block a user