Last change
on this file since 84d0fbb was 84d0fbb, checked in by Ema <ema_spirova@…>, 3 years ago |
spring security 2.0
|
-
Property mode
set to
100644
|
File size:
736 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 |
|
---|
[1ad8e64] | 15 | constructor( private ref: DynamicDialogRef) {
|
---|
[6a80231] | 16 | this.planner = new Planner;
|
---|
| 17 | }
|
---|
[fa375fe] | 18 |
|
---|
| 19 | ngOnInit(): void {
|
---|
[6a80231] | 20 | this.planner = new Planner();
|
---|
[fa375fe] | 21 | }
|
---|
| 22 |
|
---|
[1ad8e64] | 23 | onFormSubmitPlanner(planner){
|
---|
| 24 | this.ref.close(planner);
|
---|
| 25 | window.location.reload();
|
---|
[6a80231] | 26 | }
|
---|
| 27 |
|
---|
[fa375fe] | 28 |
|
---|
[6a80231] | 29 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.