fixed goback button event in mobile and tablet

This commit is contained in:
EQUILIBRIUM\hirondino.van-dunem
2022-07-01 14:40:44 +01:00
parent 4339ac90c4
commit 1c84a09afe
2 changed files with 3 additions and 5 deletions
@@ -57,7 +57,7 @@
<ion-label>
<p>{{customDate}}</p>
<p>das {{loadedEvent.StartDate | date: 'HH:mm'}} às {{loadedEvent.EndDate | date: 'HH:mm'}}</p>
<p>
<p *ngIf="loadedEvent.EventRecurrence">
<span *ngIf="loadedEvent.EventRecurrence.Type == 0">Diário</span>
<span *ngIf="loadedEvent.EventRecurrence.Type == 1">Semanal</span>
<span *ngIf="loadedEvent.EventRecurrence.Type == 2">Mensal</span>
@@ -166,10 +166,8 @@ export class ViewEventPage implements OnInit {
window.history.back();
}
else {
this.router.navigate(['/home/agenda']);
setTimeout(() => {
this.router.navigate(['/home', params["params"].caller]);
}, 30);
// this.router.navigate(['/home', params["params"].caller]);
this.RouteService.goBack();
}
});