Commit c4deda19 by Adarsh K

new changes

parent b2cd0fb0
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from '@angular/router';
import { InvalidComponent } from './'; import { InvalidComponent } from './start/invalid/invalid.component';
const routes: Routes = [ const routes: Routes = [
{ {
......
...@@ -119,7 +119,7 @@ export class CurrencyEditComponent implements OnInit { ...@@ -119,7 +119,7 @@ export class CurrencyEditComponent implements OnInit {
symbol: this.currency.symbol, symbol: this.currency.symbol,
rate: this.currency.rate, rate: this.currency.rate,
start_from: this.currency.start_from, start_from: this.currency.start_from,
flag: '' flag: this.currency.flag
}); });
} else { } else {
this.error = true; this.error = true;
...@@ -144,14 +144,8 @@ export class CurrencyEditComponent implements OnInit { ...@@ -144,14 +144,8 @@ export class CurrencyEditComponent implements OnInit {
this.router.navigate(['/checker/currency_list']); this.router.navigate(['/checker/currency_list']);
} }
goToPage(path, data = null) { logout() {
console.log(data); this.service.logout();
this.router.navigateByUrl(path, {queryParams: data}); }
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
logout() {
this.service.logout();
}
} }
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</div> </div>
<div class="s_error" *ngIf="passwordErr"> <div class="s_error" *ngIf="passwordErr">
<div class="s_validation">{{error_msg.password}} </div> <div class="s_validation">{{error_msg.password}} </div>
</div> </div>
</div> </div>
<div *ngIf="loginError" class="s_validation">{{loginMsg}}</div> <div *ngIf="loginError" class="s_validation">{{loginMsg}}</div>
<div class="login_row"> <div class="login_row">
...@@ -40,15 +40,6 @@ ...@@ -40,15 +40,6 @@
<div class="login_row"> <div class="login_row">
<h6 (click)="goToPage('start/forgot')">Forgot Password</h6> <h6 (click)="goToPage('start/forgot')">Forgot Password</h6>
</div> </div>
<!-- <div class="login_row">
<p class="textCenter" style="text-align:center !important;">Choose Language</p>
<br>
<select id="translation" class="translation" (change)="changeLang($event.target.value)">
<option value="0">English</option>
<option value="1">Arabic</option>
</select>
</div> -->
</div> </div>
</div> </div>
</div> </div>
......
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