Last change
on this file since 1ad8e64 was 1ad8e64, checked in by Ema <ema_spirova@…>, 3 years ago |
spring security
|
-
Property mode
set to
100644
|
File size:
854 bytes
|
Line | |
---|
1 | import { Component, OnInit } from '@angular/core';
|
---|
2 | import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
---|
3 | import { PlannerDto } from '../_models/dto/plannerDto';
|
---|
4 | import { Planner } from '../_models/planner';
|
---|
5 |
|
---|
6 | @Component({
|
---|
7 | selector: 'app-create-initial-planner',
|
---|
8 | templateUrl: './create-initial-planner.component.html',
|
---|
9 | styleUrls: ['./create-initial-planner.component.css']
|
---|
10 | })
|
---|
11 | export class CreateInitialPlannerComponent implements OnInit {
|
---|
12 |
|
---|
13 | planner: Planner;
|
---|
14 | plannerDto: PlannerDto;
|
---|
15 |
|
---|
16 | constructor( private ref: DynamicDialogRef) {
|
---|
17 | this.planner = new Planner;
|
---|
18 | this.plannerDto = new PlannerDto();
|
---|
19 | }
|
---|
20 |
|
---|
21 | ngOnInit(): void {
|
---|
22 | this.planner = new Planner();
|
---|
23 | this.plannerDto = new PlannerDto();
|
---|
24 | }
|
---|
25 |
|
---|
26 | onFormSubmitPlanner(planner){
|
---|
27 | this.ref.close(planner);
|
---|
28 | window.location.reload();
|
---|
29 | }
|
---|
30 |
|
---|
31 |
|
---|
32 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.