mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
Fix go back
This commit is contained in:
@@ -90,16 +90,6 @@ export class EventsPage implements OnInit {
|
||||
|
||||
this.prEventList = null;
|
||||
|
||||
// list
|
||||
this.LoadList();
|
||||
|
||||
/* this.screenOrientation.onChange().subscribe(
|
||||
() => {
|
||||
alert("Orientation updated" + this.screenOrientation.type);
|
||||
this.existingScreenOrientation = this.screenOrientation.type;
|
||||
}
|
||||
); */
|
||||
|
||||
this.platform.resize.subscribe(async () => {
|
||||
//alert('Resize event detected');
|
||||
console.log('Resize event detected');
|
||||
@@ -109,18 +99,14 @@ export class EventsPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
//Inicializar segment
|
||||
|
||||
this.segment = "Combinada";
|
||||
//Initialize profile as mdgpr
|
||||
this.profile = "mdgpr";
|
||||
/* console.log(this.profile); */
|
||||
|
||||
this.showGreeting();
|
||||
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
if(event instanceof NavigationEnd && event.url == '/home/events') {
|
||||
this.RefreshEvents();
|
||||
this.LoadList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user