This commit is contained in:
tiago.kayaya
2021-07-06 16:10:03 +01:00
parent b6e7cc4ea9
commit d433543b5c
2 changed files with 6 additions and 6 deletions
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ActivatedRoute, Router } from '@angular/router';
import { AnimationController, ModalController, NavParams, PopoverController } from '@ionic/angular';
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
import { DarParecerPage } from 'src/app/modals/dar-parecer/dar-parecer.page';
@@ -30,7 +30,8 @@ export class RequestOptionsPage implements OnInit {
private processes: ProcessesService,
private activatedRoute: ActivatedRoute,
private animationController: AnimationController,
private toastService: ToastService
private toastService: ToastService,
private router: Router,
) {
this.task = this.navParams.get('task');
this.fulltask = this.navParams.get('fulltask');
@@ -61,12 +62,13 @@ export class RequestOptionsPage implements OnInit {
}
close(){
if( window.innerWidth <= 1024){
this.popoverController.dismiss();
if( window.innerWidth < 801){
this.popoverController.dismiss();
}
else{
this.modalController.dismiss();
}
this.router.navigate(['/home/gabinete-digital/pedidos']);
}
sendExpedienteToPending(){