Ignore:
Timestamp:
11/23/21 14:58:44 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
e29cc2e
Parents:
ceaed42
Message:

adding photos

Location:
trip-planner-front/src/app/location/add-location-to-planner-panel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/location/add-location-to-planner-panel/add-location-to-planner-panel.component.html

    rceaed42 r59329aa  
    1313  </form>
    1414 
    15   <button mat-button (click)="onCancelClick()">Cancel</button>
     15  <button type="button"  mat-button (click)="onCancelClick()">Cancel</button>
  • trip-planner-front/src/app/location/add-location-to-planner-panel/add-location-to-planner-panel.component.ts

    rceaed42 r59329aa  
    11import { Component, OnInit } from '@angular/core';
    2 import { NgForm } from '@angular/forms';
    32import { MatDialogRef } from '@angular/material/dialog';
    43import { ActivatedRoute } from '@angular/router';
     
    2120  locationId: number;
    2221  plannerLocationDto: PlannerLocationDto;
     22  locationsInPlanner: Location[];
     23
    2324
    2425  constructor(private dialogRef: MatDialogRef<AddLocationToPlannerPanelComponent>, private plannerService: PlannerService,
     
    2930    this.locationId = 1;
    3031    this.plannerLocationDto = new PlannerLocationDto();
     32    this.locationsInPlanner = [];
    3133  }
    3234
     
    5658    this.plannerLocationDto.locationId = this.locationId;
    5759    this.plannerLocationDto.plannerId = plannerId;
     60    /*
    5861    this.locationService.postLocationToPlanner(this.plannerLocationDto).subscribe(
    5962      data => {
     
    6164      }
    6265    );
    63   }
     66    */
     67
     68   // window.location.reload();
     69    }
    6470
    6571}
Note: See TracChangeset for help on using the changeset viewer.