Last change
on this file since b738035 was b738035, checked in by Ema <ema_spirova@…>, 3 years ago |
signup/login server errors on front and remove location from planner
|
-
Property mode
set to
100644
|
File size:
853 bytes
|
Rev | Line | |
---|
[ceaed42] | 1 | import { Component, OnInit } from '@angular/core';
|
---|
| 2 | import { Planner } from 'src/app/_models/planner';
|
---|
| 3 | import { PlannerService } from 'src/app/_services/planner.service';
|
---|
[e29cc2e] | 4 | import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
---|
[1ad8e64] | 5 |
|
---|
[e29cc2e] | 6 |
|
---|
[ceaed42] | 7 |
|
---|
| 8 | @Component({
|
---|
| 9 | selector: 'app-add-location-to-planner-panel',
|
---|
| 10 | templateUrl: './add-location-to-planner-panel.component.html',
|
---|
| 11 | styleUrls: ['./add-location-to-planner-panel.component.css']
|
---|
| 12 | })
|
---|
| 13 | export class AddLocationToPlannerPanelComponent implements OnInit {
|
---|
| 14 |
|
---|
| 15 | planners: Planner[];
|
---|
[8d391a1] | 16 |
|
---|
[b738035] | 17 | constructor(private plannerService: PlannerService, private ref: DynamicDialogRef) {
|
---|
[ceaed42] | 18 | this.planners = [];
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | ngOnInit(): void {
|
---|
[e29cc2e] | 22 |
|
---|
[ceaed42] | 23 | this.plannerService.getAllPlanners().subscribe(
|
---|
[e29cc2e] | 24 | planner => {
|
---|
| 25 | this.planners = planner;
|
---|
[ceaed42] | 26 | }
|
---|
| 27 | );
|
---|
| 28 | }
|
---|
| 29 |
|
---|
[e29cc2e] | 30 | selectPlanner(planner: Planner) {
|
---|
| 31 | this.ref.close(planner);
|
---|
[ceaed42] | 32 | }
|
---|
| 33 |
|
---|
| 34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.