Commit b0a6e3ff authored by gap95's avatar gap95
Browse files

close button added to redirect to bike list

parent 2d954e1b
......@@ -66,16 +66,22 @@
</div>
</div>
<div class="bike-details-container" *ngIf="isDetailsVisible">
<ion-icon class="close-circle-cancel" name="close-circle" (click)="navigatetoBikeList()"></ion-icon>
<div class="inner">
<div class="button-container">
<ion-grid>
<ion-row>
<ion-col>
Bike Name
</ion-col>
<ion-col>
{{selectedBike.name}}
</ion-col>
</ion-row>
<ion-row>
<ion-col>
......
......@@ -160,4 +160,7 @@ ion-footer{
.button-container{
clear: both;
}
.close-circle-cancel{
margin-left: 93%;
}
\ No newline at end of file
......@@ -51,6 +51,7 @@ export class HomePage implements OnInit, OnDestroy {
}
ngOnInit() {
}
ngAfterViewInit() {
......@@ -225,6 +226,10 @@ export class HomePage implements OnInit, OnDestroy {
this.locationsGroup.addObjects([marker]);
}
navigatetoBikeList() {
this.isDetailsVisible = false;
this.ionViewWillEnter();
}
enable3DMaps() {
this.map.setBaseLayer(this.defaultLayers.vector.normal.map);
......
......@@ -5,6 +5,7 @@ import { Injectable } from '@angular/core';
})
export class FeedbackService {
feedbackBikeDetails = {name : "",bikeid:""}
constructor() { }
public getBikeid(){
return this.feedbackBikeDetails.bikeid
......
Supports Markdown
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