mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
improve
This commit is contained in:
@@ -4,8 +4,9 @@ import { EventPerson } from 'src/app/models/eventperson.model';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { ApproveEventModalPage } from './approve-event-modal/approve-event-modal.page';
|
||||
import { NavigationEnd, NavigationStart, Router } from '@angular/router';
|
||||
import { NavigationStart, Router } from '@angular/router';
|
||||
import { EventoAprovacaoStore } from 'src/app/store/eventoaprovacao-store.service';
|
||||
import { Location } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-event-list',
|
||||
@@ -32,7 +33,8 @@ export class EventListPage implements OnInit {
|
||||
constructor(
|
||||
private processes:ProcessesService,
|
||||
private modalController: ModalController,
|
||||
private router: Router
|
||||
private router: Router,
|
||||
private location: Location
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
@@ -138,12 +140,14 @@ export class EventListPage implements OnInit {
|
||||
this.modalController.dismiss(null);
|
||||
}
|
||||
goBack() {
|
||||
if(this.router.url == '/home/agenda/event-list') {
|
||||
this.router.navigate(['/home/agenda']);
|
||||
}
|
||||
else if(this.router.url == '/home/gabinete-digital/event-list'){
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
}
|
||||
// if(this.router.url == '/home/agenda/event-list') {
|
||||
// this.router.navigate(['/home/agenda']);
|
||||
// }
|
||||
// else if(this.router.url == '/home/gabinete-digital/event-list'){
|
||||
// this.router.navigate(['/home/gabinete-digital']);
|
||||
// }
|
||||
|
||||
this.location.back()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user