Commit e8dbdecb by Tobin

daily commit

parent 4e8dbccc
......@@ -5,6 +5,9 @@ import { NgxCarousel } from 'ngx-carousel';
import { MapsAPILoader } from '@agm/core';
import { SubjectService } from '../../provider/subject.service';
import { FormGroup, FormControl, Validators, ValidationErrors } from '@angular/forms';
import { google } from '@google/maps';
import { ImageStorage } from '../../../environments/server.config';
declare var $;
declare const google: any;
......@@ -46,7 +49,8 @@ export class IndexComponent implements OnInit {
selectedIssues: any[] = new Array();
//Quote Page
imageServer: string;
mechanicData: any;
carModel: any;
carSearchJsonData: any;
......@@ -58,6 +62,7 @@ export class IndexComponent implements OnInit {
public webService : WebService,
public mapsAPILoader : MapsAPILoader,
public subjectService : SubjectService) {
this.imageServer = ImageStorage;
this.loginDetails = false;
this.searchLocError = false;
this.vehicleDataFormSubmit = false;
......@@ -212,7 +217,8 @@ export class IndexComponent implements OnInit {
this.webService.post_data('getNearByMechanics',this.wizardData.pickup_data).subscribe(response => {
this.loader = false;
if(response.status == '1'){
this.issuesData = response.issue_data;
this.mechanicData = response.mechanic_data;
console.log(this.mechanicData);
} else {
this.router.navigate(["index"]);
}
......
......@@ -43,7 +43,7 @@
Welcome back,  {{ loginDetails.first_name | titlecase }}
</div>
<div class="account_pic">
<img src="{{imageServer + loginDetails.profile_image}}" onerror="this.src='./../assets/images/user_avatar.jpg';">
<img src="{{imageServer + loginDetails.profile_image}}" onerror="this.src='assets/images/user_avatar.jpg'">
</div>
<div class="clear"></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