Changeset 59329aa for trip-planner-front/src/app/location/add-location-to-planner-panel/add-location-to-planner-panel.component.ts
- Timestamp:
- 11/23/21 14:58:44 (3 years ago)
- Branches:
- master
- Children:
- e29cc2e
- Parents:
- ceaed42
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/location/add-location-to-planner-panel/add-location-to-planner-panel.component.ts
rceaed42 r59329aa 1 1 import { Component, OnInit } from '@angular/core'; 2 import { NgForm } from '@angular/forms';3 2 import { MatDialogRef } from '@angular/material/dialog'; 4 3 import { ActivatedRoute } from '@angular/router'; … … 21 20 locationId: number; 22 21 plannerLocationDto: PlannerLocationDto; 22 locationsInPlanner: Location[]; 23 23 24 24 25 constructor(private dialogRef: MatDialogRef<AddLocationToPlannerPanelComponent>, private plannerService: PlannerService, … … 29 30 this.locationId = 1; 30 31 this.plannerLocationDto = new PlannerLocationDto(); 32 this.locationsInPlanner = []; 31 33 } 32 34 … … 56 58 this.plannerLocationDto.locationId = this.locationId; 57 59 this.plannerLocationDto.plannerId = plannerId; 60 /* 58 61 this.locationService.postLocationToPlanner(this.plannerLocationDto).subscribe( 59 62 data => { … … 61 64 } 62 65 ); 63 } 66 */ 67 68 // window.location.reload(); 69 } 64 70 65 71 }
Note:
See TracChangeset
for help on using the changeset viewer.