Skip to content

Commit c7ab249

Browse files
author
mkobar
committed
removed logout
1 parent 8a68268 commit c7ab249

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/pages/home/home.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
My Bills
55
</ion-title>
66
<ion-buttons end>
7+
<!--
78
<button ion-button color="danger" (click)="logoutNow()">Logout
89
</button>
10+
-->
911
<button ion-button icon-only (click)="createBill()">
1012
<ion-icon name="add"></ion-icon>
1113
</button>

src/pages/home/home.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Platform
99
} from 'ionic-angular';
1010
import { Observable } from 'rxjs/Observable';
11+
import { LandingPage } from '../landing/landing';
1112
import { BillProvider } from '../../providers/bill/bill';
1213
import { AuthProvider } from '../../providers/auth/auth';
1314

@@ -78,6 +79,7 @@ export class HomePage {
7879
}
7980

8081
logoutNow(): void {
82+
/*** breaks flow of app - after logout cannot use anon
8183
this.authProvider.logoutUser().then(newUser => {
8284
loading.dismiss().then(() => {
8385
this.navCtrl.setRoot(LandingPage);
@@ -90,8 +92,9 @@ export class HomePage {
9092
9193
const loading: Loading = this.loadingCtrl.create();
9294
loading.present();
95+
***/
9396

94-
//this.navCtrl.push('LandingPage');
97+
this.navCtrl.push('LandingPage');
9598
}
9699

97100
}

0 commit comments

Comments
 (0)