Commit dba0e182 by Adarsh K

Merge branch 'adarsh' into 'master'

Adarsh See merge request !52
parents e324df3e 522787f4
...@@ -83,6 +83,7 @@ export class AppComponent { ...@@ -83,6 +83,7 @@ export class AppComponent {
initializeApp() { initializeApp() {
this.platform.ready().then(() => { this.platform.ready().then(() => {
this.statusBar.styleDefault(); this.statusBar.styleDefault();
this.statusBar.hide();
this.statusBar.overlaysWebView(false); this.statusBar.overlaysWebView(false);
this.statusBar.backgroundColorByHexString('#29285b'); this.statusBar.backgroundColorByHexString('#29285b');
}); });
...@@ -107,7 +108,8 @@ export class AppComponent { ...@@ -107,7 +108,8 @@ export class AppComponent {
'landing', 'landing',
'login', 'login',
'signup', 'signup',
'address' 'address',
'forgot'
]; ];
const currentUrl = this.router.url.split('/'); const currentUrl = this.router.url.split('/');
const index = restrictedUrl.findIndex(x => x === currentUrl[1]); const index = restrictedUrl.findIndex(x => x === currentUrl[1]);
......
<div class="nav_header"> <div class="nav_header">
<button class="nav_btn nav_back floatLeft" (click)="goBack()"> <button class="nav_btn nav_back floatLeft" (click)="goBack()">
<img src="../assets/Group17_2.png"> <img src="../assets/Group17_2.png" />
</button> </button>
<div class="nav_title floatLeft"> <div class="nav_title floatLeft">
<h4>FORGOT PASSWORD</h4> <h4>FORGOT PASSWORD</h4>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<ion-content> <ion-content>
<div class="verification_div"> <div class="verification_div">
<div class="form_div"> <div class="form_div">
<div class="row"> <div class="row">
<input class="" type="text" placeholder="Type your phone number"> <input
</div> class=""
<div class="row"> type="email"
<button class="login_btn">GET OTP</button> placeholder="Type your email Id"
</div> #emailId
</div> required
/>
</div>
<div class="row">
<button
class="login_btn"
(click)="authService.resetPassword(emailId.value)"
>
RESET PASSWORD
</button>
</div>
</div> </div>
</ion-content> </div>
\ No newline at end of file </ion-content>
<div class="loader" *ngIf="authService.loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Location } from '@angular/common'; import { Location } from '@angular/common';
import { Router, ActivatedRoute } from '@angular/router'; import { Router, ActivatedRoute } from '@angular/router';
import { AuthService } from './../../config/auth.service';
@Component({ @Component({
selector: 'app-forgot', selector: 'app-forgot',
templateUrl: './forgot.page.html', templateUrl: './forgot.page.html',
styleUrls: ['./forgot.page.scss'], styleUrls: ['./forgot.page.scss']
}) })
export class ForgotPage implements OnInit { export class ForgotPage implements OnInit {
constructor( constructor(
private router: Router, private router: Router,
private route: ActivatedRoute, private route: ActivatedRoute,
private location: Location private location: Location,
) { } public authService: AuthService
) {}
ngOnInit() { ngOnInit() {}
}
goToPage(path, data = null) { goToPage(path, data = null) {
this.router.navigateByUrl(path, { queryParams: data }); this.router.navigateByUrl(path, { queryParams: data });
...@@ -26,5 +26,4 @@ export class ForgotPage implements OnInit { ...@@ -26,5 +26,4 @@ export class ForgotPage implements OnInit {
goBack() { goBack() {
this.location.back(); this.location.back();
} }
} }
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<!-- <button (click)="goToPage('addaddresss')">Address</button> --> <!-- <button (click)="goToPage('addaddresss')">Address</button> -->
</div> </div>
</div> </div>
<div class="loader" *ngIf="authService.loader"> <div class="loader" *ngIf="loader">
<div class="lds-ripple"> <div class="lds-ripple">
<div></div> <div></div>
<div></div> <div></div>
......
...@@ -113,7 +113,6 @@ export class AuthService { ...@@ -113,7 +113,6 @@ export class AuthService {
} }
public async google(type: number) { public async google(type: number) {
this.loader = true;
this.type = type; this.type = type;
// this.googlePlus.login({}).then(res => console.log(res)).catch(err => console.error(err)); // this.googlePlus.login({}).then(res => console.log(res)).catch(err => console.error(err));
this.afAuth.auth this.afAuth.auth
...@@ -129,13 +128,13 @@ export class AuthService { ...@@ -129,13 +128,13 @@ export class AuthService {
} }
}) })
.catch(err => { .catch(err => {
console.log(err);
this.loader = false; this.loader = false;
console.log(this.loader);
}); });
} }
public async facebook(type: number) { public async facebook(type: number) {
console.log('here fab');
this.loader = true;
this.type = type; this.type = type;
const This = this; const This = this;
setTimeout(() => { setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment