Ignore:
Timestamp:
11/26/21 20:07:18 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
1ad8e64
Parents:
e29cc2e
Message:

disabling to add location if it already exists in the planner

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

    re29cc2e r8d391a1  
    44import { PlannerService } from 'src/app/_services/planner.service';
    55import { DynamicDialogRef } from 'primeng/dynamicdialog';
    6 
    7 
     6import { LocationService } from 'src/app/_services/location.service';
     7import { Location } from 'src/app/_models/location';
     8import { PlannerLocationDto } from 'src/app/_models/dto/plannerLocationDto';
    89
    910
     
    1617
    1718  planners: Planner[];
    18 
    19 
    20 
     19 
    2120  constructor(private plannerService: PlannerService,
    22     private route: ActivatedRoute, private ref: DynamicDialogRef) {
     21    private route: ActivatedRoute, private ref: DynamicDialogRef, private locationService : LocationService) {
    2322    this.planners = [];
    2423  }
     
    3130      }
    3231    );
     32
    3333  }
    3434
     
    3737  }
    3838
    39 
    40 
    4139}
Note: See TracChangeset for help on using the changeset viewer.