Ignore:
Timestamp:
12/28/21 08:56:55 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
b738035
Parents:
84d0fbb
Message:

pre final presentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.ts

    r84d0fbb rbdd6491  
     1import { PlatformModule } from '@angular/cdk/platform';
    12import { Component, OnInit } from '@angular/core';
    23import { DynamicDialogRef } from 'primeng/dynamicdialog';
     
    1112export class CreateInitialPlannerComponent implements OnInit {
    1213
    13   planner: Planner;
     14  plannerDto: PlannerDto;
    1415
    1516  constructor( private ref: DynamicDialogRef) {
    16                 this.planner = new Planner;
     17                this.plannerDto = new PlannerDto();
    1718              }
    1819
    1920  ngOnInit(): void {
    20     this.planner = new Planner();
     21    this.plannerDto = new Planner();
    2122  }
    2223
    23   onFormSubmitPlanner(planner){
    24     this.ref.close(planner);
     24  onFormSubmitPlanner(plannerDto){
     25    this.ref.close(plannerDto);
    2526    window.location.reload();
    2627  }
Note: See TracChangeset for help on using the changeset viewer.