File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 88 Platform
99} from 'ionic-angular' ;
1010import { Observable } from 'rxjs/Observable' ;
11+ import { LandingPage } from '../landing/landing' ;
1112import { BillProvider } from '../../providers/bill/bill' ;
1213import { 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}
You can’t perform that action at this time.
0 commit comments