mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
save
This commit is contained in:
@@ -11,12 +11,14 @@ export class EmendMessageModalPage implements OnInit {
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
) { }
|
||||
) {
|
||||
this.emendMessage = '';
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
close(){
|
||||
this.modalController.dismiss(this.emendMessage);
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
save(){
|
||||
this.modalController.dismiss(this.emendMessage);
|
||||
|
||||
@@ -5,7 +5,7 @@ import { EventsService } from 'src/app/services/events.service';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { EventListPage } from './event-list/event-list.page';
|
||||
import { ExpedientePage } from './expediente/expediente.page';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-gabinete-digital',
|
||||
@@ -44,7 +44,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
private processesbackend:ProcessesService,
|
||||
private modalController: ModalController,
|
||||
private alertService: AlertService,
|
||||
private route: ActivatedRoute,
|
||||
private activatedRoute: ActivatedRoute,
|
||||
private router: Router,
|
||||
) {
|
||||
|
||||
window.onresize = (event) => {
|
||||
@@ -57,10 +58,23 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
this.adjastModalHeight();
|
||||
|
||||
this.route.queryParams.subscribe(params => {
|
||||
/* this.activatedRoute.queryParams.subscribe(params => {
|
||||
if(params["show"]){
|
||||
this.openExpedientListPage();
|
||||
}
|
||||
}
|
||||
else if(params["events-to-approve"]){
|
||||
this.openEventsToApprovePage("MDGPR");
|
||||
}
|
||||
}); */
|
||||
|
||||
this.activatedRoute.paramMap.subscribe(paramMap =>{
|
||||
if (paramMap.has("show")){
|
||||
this.openExpedientListPage();
|
||||
}
|
||||
else if(paramMap.has("events")){
|
||||
this.openEventsToApprovePage("MDGPR");
|
||||
this.LoadCounts();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
@@ -93,6 +107,15 @@ export class GabineteDigitalPage implements OnInit {
|
||||
ngOnInit() {
|
||||
//Initialize profile as mdgpr
|
||||
this.profile = "MDGPR";
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
this.LoadCounts();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
this.LoadCounts();
|
||||
/* this.eventService.getAllMdEvents.subscribe(res=>{
|
||||
console.log(res);
|
||||
|
||||
Reference in New Issue
Block a user