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 {
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.statusBar.hide();
this.statusBar.overlaysWebView(false);
this.statusBar.backgroundColorByHexString('#29285b');
});
......@@ -107,7 +108,8 @@ export class AppComponent {
'landing',
'login',
'signup',
'address'
'address',
'forgot'
];
const currentUrl = this.router.url.split('/');
const index = restrictedUrl.findIndex(x => x === currentUrl[1]);
......
<div class="nav_header">
<button class="nav_btn nav_back floatLeft" (click)="goBack()">
<img src="../assets/Group17_2.png">
<img src="../assets/Group17_2.png" />
</button>
<div class="nav_title floatLeft">
<h4>FORGOT PASSWORD</h4>
......@@ -11,11 +11,28 @@
<div class="verification_div">
<div class="form_div">
<div class="row">
<input class="" type="text" placeholder="Type your phone number">
<input
class=""
type="email"
placeholder="Type your email Id"
#emailId
required
/>
</div>
<div class="row">
<button class="login_btn">GET OTP</button>
<button
class="login_btn"
(click)="authService.resetPassword(emailId.value)"
>
RESET PASSWORD
</button>
</div>
</div>
</div>
</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 { Location } from '@angular/common';
import { Router, ActivatedRoute } from '@angular/router';
import { AuthService } from './../../config/auth.service';
@Component({
selector: 'app-forgot',
templateUrl: './forgot.page.html',
styleUrls: ['./forgot.page.scss'],
styleUrls: ['./forgot.page.scss']
})
export class ForgotPage implements OnInit {
constructor(
private router: Router,
private route: ActivatedRoute,
private location: Location
) { }
private location: Location,
public authService: AuthService
) {}
ngOnInit() {
}
ngOnInit() {}
goToPage(path, data = null) {
this.router.navigateByUrl(path, { queryParams: data });
......@@ -26,5 +26,4 @@ export class ForgotPage implements OnInit {
goBack() {
this.location.back();
}
}
......@@ -66,7 +66,7 @@
<!-- <button (click)="goToPage('addaddresss')">Address</button> -->
</div>
</div>
<div class="loader" *ngIf="authService.loader">
<div class="loader" *ngIf="loader">
<div class="lds-ripple">
<div></div>
<div></div>
......
......@@ -113,7 +113,6 @@ export class AuthService {
}
public async google(type: number) {
this.loader = true;
this.type = type;
// this.googlePlus.login({}).then(res => console.log(res)).catch(err => console.error(err));
this.afAuth.auth
......@@ -129,13 +128,13 @@ export class AuthService {
}
})
.catch(err => {
console.log(err);
this.loader = false;
console.log(this.loader);
});
}
public async facebook(type: number) {
console.log('here fab');
this.loader = true;
this.type = type;
const This = this;
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