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.
 
 
 
 
 

27 lines
678 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { Component, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
@Component({
selector: 'sqx-comment-trigger',
styleUrls: ['./comment-trigger.component.scss'],
templateUrl: './comment-trigger.component.html'
})
export class CommentTriggerComponent implements OnInit {
@Input()
public trigger: any;
@Input()
public triggerForm: FormGroup;
public ngOnInit() {
this.triggerForm.setControl('condition',
new FormControl(this.trigger.condition || ''));
}
}