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
|
Rev | Line | |
---|
[1ad8e64] | 1 | import { Component, OnInit } from '@angular/core';
|
---|
| 2 | import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
---|
[6a80231] | 3 | import { PlannerDto } from '../_models/dto/plannerDto';
|
---|
| 4 | import { Planner } from '../_models/planner';
|
---|
[fa375fe] | 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 |
|
---|
[6a80231] | 13 | planner: Planner;
|
---|
| 14 | plannerDto: PlannerDto;
|
---|
| 15 |
|
---|
[1ad8e64] | 16 | constructor( private ref: DynamicDialogRef) {
|
---|
[6a80231] | 17 | this.planner = new Planner;
|
---|
| 18 | this.plannerDto = new PlannerDto();
|
---|
| 19 | }
|
---|
[fa375fe] | 20 |
|
---|
| 21 | ngOnInit(): void {
|
---|
[6a80231] | 22 | this.planner = new Planner();
|
---|
| 23 | this.plannerDto = new PlannerDto();
|
---|
[fa375fe] | 24 | }
|
---|
| 25 |
|
---|
[1ad8e64] | 26 | onFormSubmitPlanner(planner){
|
---|
| 27 | this.ref.close(planner);
|
---|
| 28 | window.location.reload();
|
---|
[6a80231] | 29 | }
|
---|
| 30 |
|
---|
[fa375fe] | 31 |
|
---|
[6a80231] | 32 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.