mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
change home
This commit is contained in:
@@ -27,32 +27,46 @@
|
||||
<div class="main-content justify-center d-flex height-100">
|
||||
<div class="box-container width-100 d-flex mx-20" style="padding: 0px;overflow: hidden;">
|
||||
<ion-progress-bar type="indeterminate" *ngIf="loadingAllTask || TaskService.showLoader"></ion-progress-bar>
|
||||
<div class="px-20 pb-20">
|
||||
<div class="px-20 pb-20 container-filters">
|
||||
<p class="time ion-text-left ">{{customDate}}</p>
|
||||
<div class="wrap d-flex float-left">
|
||||
<div class="event-box pointer" (click)="goToAllTaskFilter('ForToDay')">
|
||||
<div class="filters-box wrap d-flex float-left">
|
||||
|
||||
<div class="event-box pointer hideMobile" (click)="goToAllTaskFilter('ForToDay')">
|
||||
<!-- <p>correspondencia com prazo para hoje</p> -->
|
||||
<p>Correspondências com prazo para hoje</p>
|
||||
<span>{{ TaskService.deadline }}</span>
|
||||
</div>
|
||||
|
||||
<div class="event-box pointer" (click)="goToAllTaskFilter('OverdueTasks')">
|
||||
<div class="event-box pointer hideMobile" (click)="goToAllTaskFilter('OverdueTasks')">
|
||||
<!-- <p>correspondencia em atraso</p> -->
|
||||
<p>Correspondências em atraso</p>
|
||||
<span>{{ TaskService.overdueTasks }}</span>
|
||||
</div>
|
||||
|
||||
<div class="event-box pointer" (click)="goToAllTaskFilter('New')">
|
||||
<!-- <p>Novas correspondencia</p> -->
|
||||
<p>Novas Correspondências</p>
|
||||
<span>{{ TaskService.new }}</span>
|
||||
</div>
|
||||
|
||||
<div class="event-box pointer" (click)="goToAllTaskFilter('unread')">
|
||||
<div class="event-box pointer hideMobile" (click)="goToAllTaskFilter('unread')">
|
||||
<!-- <p>correspondencia não lidas</p> -->
|
||||
<p>Correspondências não lidas</p>
|
||||
<span>{{ TaskService.unread }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- ««««««««««««««««««««««««««««««««««««««««««««« -->
|
||||
|
||||
<div class="event-box pointer d-none showMobile" (click)="goToAllTaskFilter('ForToDay')">
|
||||
<!-- <p>correspondencia com prazo para hoje</p> -->
|
||||
<p>Correspondências com prazo para hoje <b>{{ TaskService.deadline }}</b></p>
|
||||
</div>
|
||||
|
||||
<div class="event-box pointer d-none showMobile" (click)="goToAllTaskFilter('OverdueTasks')">
|
||||
<!-- <p>correspondencia em atraso</p> -->
|
||||
<p>Correspondências em atraso <b>{{ TaskService.overdueTasks }}</b></p>
|
||||
</div>
|
||||
|
||||
<div class="event-box pointer d-none showMobile" (click)="goToAllTaskFilter('unread')">
|
||||
<!-- <p>correspondencia não lidas</p> -->
|
||||
<p>Correspondências não lidas <b>{{ TaskService.unread }}</b></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -518,19 +518,42 @@ ion-toolbar{
|
||||
|
||||
@media only screen and (max-width: 856px) {
|
||||
|
||||
.content, .conteiner-box{
|
||||
.content, .conteiner-box {
|
||||
height: unset !important;
|
||||
max-height: unset !important;
|
||||
}
|
||||
|
||||
.event-box {
|
||||
display: block;
|
||||
height: unset !important;
|
||||
max-width: unset !important;
|
||||
width: 100% !important;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.schedule-1 {
|
||||
display: none;
|
||||
}
|
||||
.filters-box {
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
}
|
||||
.box-container {
|
||||
max-width: 400px !important;
|
||||
}
|
||||
|
||||
.showMobile {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.hideMobile {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.conteiner-box-mobile {
|
||||
display: flex !important;
|
||||
}
|
||||
|
||||
|
||||
.box-container {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
@@ -62,20 +62,25 @@ export class EventListPage implements OnInit {
|
||||
if(window.location.pathname.includes('gabinete-digital')) {
|
||||
this.showFilter = true
|
||||
}
|
||||
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
|
||||
|
||||
this.eventService.onCalendarFinishLoad.subscribe(() => {
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
|
||||
// select pr by default
|
||||
const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
if(pr) {
|
||||
this.segment = pr.OwnerUserId
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// select pr by default
|
||||
// const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
// if(pr) {
|
||||
// this.segment = pr.OwnerUserId
|
||||
// }
|
||||
}
|
||||
|
||||
const location = window.location
|
||||
const pathname = location.pathname + location.search
|
||||
|
||||
@@ -55,7 +55,6 @@ export class LoginPage implements OnInit {
|
||||
private platform: Platform,
|
||||
private FirstEnterService: FirstEnterService,
|
||||
private storage:Storage,
|
||||
private httpErrorHandle: HttpErrorHandle
|
||||
) {}
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
Reference in New Issue
Block a user