mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Improve search
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<ion-header class="ion-no-border">
|
||||
<ion-header class="ion-no-border d-md-none">
|
||||
<app-header></app-header>
|
||||
</ion-header>
|
||||
|
||||
<ion-content class="height-100">
|
||||
<div class="main-content d-flex height-100">
|
||||
<div class="_main-content d-flex height-100 ma-0 px-20 pt-30 pb-20">
|
||||
<div class="content d-flex flex-column width-100">
|
||||
<div class="main-header d-flex">
|
||||
<div class="title-content d-flex justify-between width-100">
|
||||
|
||||
@@ -44,6 +44,7 @@ export class ViewEventPage implements OnInit {
|
||||
days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
|
||||
|
||||
dicIndex = 0;
|
||||
isModal = false
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -68,6 +69,10 @@ export class ViewEventPage implements OnInit {
|
||||
if(params["params"].caller){
|
||||
this.caller = (params["params"].caller);
|
||||
}
|
||||
|
||||
if(params["params"].isModal) {
|
||||
this.isModal = params["params"].isModal
|
||||
}
|
||||
});
|
||||
|
||||
/* this.activatedRoute.queryParams.subscribe(params => {
|
||||
@@ -77,6 +82,7 @@ export class ViewEventPage implements OnInit {
|
||||
}
|
||||
}); */
|
||||
|
||||
alert('yes')
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -100,14 +106,20 @@ export class ViewEventPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.activatedRoute.paramMap.subscribe(params => {
|
||||
if(params["params"].caller == 'expediente'){
|
||||
window.history.back();
|
||||
}
|
||||
else{
|
||||
this.router.navigate(['/home',params["params"].caller]);
|
||||
}
|
||||
});
|
||||
|
||||
if(this.isModal) {
|
||||
this.close()
|
||||
} else {
|
||||
this.activatedRoute.paramMap.subscribe(params => {
|
||||
if(params["params"].caller == 'expediente'){
|
||||
window.history.back();
|
||||
}
|
||||
else{
|
||||
this.router.navigate(['/home',params["params"].caller]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
loadEvent() {
|
||||
|
||||
Reference in New Issue
Block a user