Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
691 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { FormControl, Validators } from '@angular/forms';
import { Form, hasNoValue$, ExtendedFormGroup } from '@app/framework';
import { CreateWorkflowDto } from './../services/workflows.service';
export class AddWorkflowForm extends Form<ExtendedFormGroup, CreateWorkflowDto> {
public get name() {
return this.form.controls['name'];
}
public hasNoName = hasNoValue$(this.name);
constructor() {
super(new ExtendedFormGroup({
name: new FormControl('',
Validators.required,
),
}));
}
}