|
|
@ -8,13 +8,13 @@ import {Router} from '@angular/router';
|
|
|
|
templateUrl: 'home.page.html',
|
|
|
|
templateUrl: 'home.page.html',
|
|
|
|
styleUrls: ['home.page.scss'],
|
|
|
|
styleUrls: ['home.page.scss'],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
export class HomePage implements OnInit {
|
|
|
|
export class HomePage {
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
|
public readonly api: ApiService,
|
|
|
|
public readonly api: ApiService,
|
|
|
|
public readonly router: Router,
|
|
|
|
public readonly router: Router,
|
|
|
|
) {}
|
|
|
|
) {}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
ionViewDidEnter() {
|
|
|
|
if ( !this.api.isAuthenticated || this.api.isPublicUser ) {
|
|
|
|
if ( !this.api.isAuthenticated || this.api.isPublicUser ) {
|
|
|
|
if ( isDebug() ) {
|
|
|
|
if ( isDebug() ) {
|
|
|
|
debug('Forcing authentication...');
|
|
|
|
debug('Forcing authentication...');
|
|
|
|