improve request

This commit is contained in:
Peter Maquiran
2021-07-09 13:32:17 +01:00
parent cdece357e3
commit 1f34261db4
21 changed files with 74 additions and 23 deletions
@@ -14,14 +14,13 @@ import { FormGroup, FormBuilder, Validators } from "@angular/forms";
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
import { AttachmentsPage } from '../attachments/attachments.page';
@Component({
selector: 'app-edit-event',
templateUrl: './edit-event.page.html',
styleUrls: ['./edit-event.page.scss'],
})
export class EditEventPage implements OnInit {
export class EditEventPage implements OnInit {
loadedEvent: Event;
loadedEventAttachments: Attachment[];
+3 -1
View File
@@ -97,8 +97,10 @@ export class EventsPage implements OnInit {
this.showGreeting();
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == this.router.url) {
if(event instanceof NavigationEnd && event.url == pathname) {
this.RefreshEvents();
this.LoadList();
}