Improve some

This commit is contained in:
Peter Maquiran
2021-07-08 10:43:40 +01:00
parent 2620dcd990
commit a61f953cdc
9 changed files with 21 additions and 18 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
///<reference path="../../../plugins/cordova-plugin-mfp/typings/worklight.d.ts" />
///<reference path="../../../plugins/cordova-plugin-mfp-push/typings/mfppush.d.ts" />
import { Component, OnInit, NgZone } from '@angular/core';
import { Component, OnInit, NgZone, Inject } from '@angular/core';
import { EventsService } from '../services/events.service';
import { Event } from '../models/event.model';
import { ProcessesService } from '../services/processes.service';
@@ -47,7 +47,7 @@ export class HomePage implements OnInit {
constructor(private zone: NgZone,
private eventService: EventsService,
private processesbackend: ProcessesService,
private router: Router,
private router: Router,
private modalController: ModalController,
public modalCtrl: AlertController,
private toastService: ToastService,
@@ -55,8 +55,8 @@ export class HomePage implements OnInit {
private notificatinsservice: NotificationsService,
private platform: Platform) {
router.events.subscribe((val) => {
document.querySelectorAll('ion-modal').forEach((e) => e.remove())
this.router.events.subscribe((val) => {
document.querySelectorAll('ion-modal').forEach((e: any) => e.remove())
});
{
@@ -103,7 +103,7 @@ export class HomePage implements OnInit {
}
mobilefirstConnect() {
WLAuthorizationManager.obtainAccessToken("").then(
window['WLAuthorizationManager'].obtainAccessToken("").then(
(token) => {
console.log('MobileFirst Server connect: Success ' + token);