mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -149,7 +149,7 @@
|
|||||||
</ion-row>
|
</ion-row>
|
||||||
</ion-row>
|
</ion-row>
|
||||||
|
|
||||||
<div class="pb-5 d-none d-md-flex">
|
<div class="pb-5 d-none d-md-flex" *ngIf="loggeduser.Profile == 'MDGPR'">
|
||||||
<div class="flex-grow-1 text-grey d-flex justify-center align-center">
|
<div class="flex-grow-1 text-grey d-flex justify-center align-center">
|
||||||
<div>Própria</div>
|
<div>Própria</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
</mwl-calendar-day-view>
|
</mwl-calendar-day-view>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div [ngSwitch]="view" class="fs-timeline flex-grow-1 d-none d-md-block" >
|
<div [ngSwitch]="view" class="fs-timeline flex-grow-1 d-none d-md-block" *ngIf="loggeduser.Profile == 'MDGPR'">
|
||||||
<mwl-calendar-day-view
|
<mwl-calendar-day-view
|
||||||
*ngSwitchCase="'day'"
|
*ngSwitchCase="'day'"
|
||||||
[viewDate]="viewDate"
|
[viewDate]="viewDate"
|
||||||
|
|||||||
@@ -538,7 +538,7 @@ export class AgendaPage implements OnInit {
|
|||||||
//this.eventSource=[];
|
//this.eventSource=[];
|
||||||
|
|
||||||
|
|
||||||
if(this.profile == "mdgpr") {
|
if(this.loggeduser.Profile == 'MDGPR' ) {
|
||||||
this.eventService.getAllMdEvents( momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59') ).subscribe(
|
this.eventService.getAllMdEvents( momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59') ).subscribe(
|
||||||
response => {
|
response => {
|
||||||
|
|
||||||
@@ -627,7 +627,7 @@ export class AgendaPage implements OnInit {
|
|||||||
case "Pessoal":
|
case "Pessoal":
|
||||||
//Inicializa o array eventSource
|
//Inicializa o array eventSource
|
||||||
|
|
||||||
if(this.profile == "mdgpr") {
|
if(this.loggeduser.Profile == 'MDGPR') {
|
||||||
this.eventService.getAllMdEvents(momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59')).subscribe(response => {
|
this.eventService.getAllMdEvents(momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59')).subscribe(response => {
|
||||||
|
|
||||||
this.eventSource=[];
|
this.eventSource=[];
|
||||||
@@ -703,7 +703,7 @@ export class AgendaPage implements OnInit {
|
|||||||
//Inicializa o array eventSource
|
//Inicializa o array eventSource
|
||||||
this.eventsListOficial = [];
|
this.eventsListOficial = [];
|
||||||
|
|
||||||
if(this.profile == "mdgpr") {
|
if(this.loggeduser.Profile == 'MDGPR') {
|
||||||
this.eventService.getAllMdEvents(momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59')).subscribe(res => {
|
this.eventService.getAllMdEvents(momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59')).subscribe(res => {
|
||||||
this.eventSource=[];
|
this.eventSource=[];
|
||||||
this.eventsListOficial = res.filter(data => data.CalendarName == "Oficial");
|
this.eventsListOficial = res.filter(data => data.CalendarName == "Oficial");
|
||||||
@@ -779,6 +779,7 @@ export class AgendaPage implements OnInit {
|
|||||||
// calendar
|
// calendar
|
||||||
let counter = 0;
|
let counter = 0;
|
||||||
|
|
||||||
|
if(this.loggeduser.Profile == 'MDGPR') {
|
||||||
this.eventService.getAllMdEvents( momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59') ).subscribe(
|
this.eventService.getAllMdEvents( momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59') ).subscribe(
|
||||||
response => {
|
response => {
|
||||||
|
|
||||||
@@ -828,6 +829,8 @@ export class AgendaPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.eventService.getAllPrEvents(momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59')).subscribe(
|
this.eventService.getAllPrEvents(momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59')).subscribe(
|
||||||
response => {
|
response => {
|
||||||
@@ -869,7 +872,7 @@ export class AgendaPage implements OnInit {
|
|||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
|
|
||||||
if(counter==2){
|
if(counter==2 || this.loggeduser.Profile == 'PR') {
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
this.timelineBoxCorrectHeight(500);
|
this.timelineBoxCorrectHeight(500);
|
||||||
this.centralizeTimeline(500);
|
this.centralizeTimeline(500);
|
||||||
|
|||||||
+4
-5
@@ -384,6 +384,7 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.modal-width-100-width-background, .modal-desktop {
|
.modal-width-100-width-background, .modal-desktop {
|
||||||
.modal-wrapper{
|
.modal-wrapper{
|
||||||
@@ -528,8 +529,8 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// timeline
|
.timeline-container {
|
||||||
.sd-timeline{
|
div:nth-child(3) {
|
||||||
.cal-time{
|
.cal-time{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -543,9 +544,7 @@ td.monthview-secondary-with-event, td.monthview-secondary-with-event[_ngcontent-
|
|||||||
width: 113%;
|
width: 113%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.timeline{
|
.timeline{
|
||||||
div.cal-event:focus{
|
div.cal-event:focus{
|
||||||
|
|||||||
Reference in New Issue
Block a user