hide some components

This commit is contained in:
Tykayn 2021-03-24 18:39:18 +01:00 committed by tykayn
parent e63bbab755
commit f3f2d6623b
2 changed files with 9 additions and 7 deletions

View File

@ -22,12 +22,12 @@
<p class="subtitle">
{{ 'creation.want' | translate }}
</p>
<app-kind-select [form]="form"></app-kind-select>
<app-base-config [form]="form"></app-base-config>
<app-date-select
*ngIf="form.value.configuration && form.value.configuration.isAboutDate"
[form]="form"
></app-date-select>
<!-- <app-kind-select [form]="form"></app-kind-select>-->
<!-- <app-base-config [form]="form"></app-base-config>-->
<!-- <app-date-select-->
<!-- *ngIf="form.value.configuration && form.value.configuration.isAboutDate"-->
<!-- [form]="form"-->
<!-- ></app-date-select>-->
<!-- <app-text-select ng-if="!form.value.isAboutDate" [form]="form"></app-text-select>-->
<button
@ -41,7 +41,8 @@
<app-advanced-config [poll]="poll" [form]="form" *ngIf="advancedDisplayEnabled"></app-advanced-config>
</div>
</main>
<footer class="column">
<footer class="column" *ngIf="show_debug_data">
<h2>Debug data</h2>
<pre class="debug padded warning">
form values :
{{ form.value | json }}

View File

@ -19,6 +19,7 @@ export class FormComponent implements OnInit {
public form: FormGroup;
public advancedDisplayEnabled = false;
public show_debug_data = false;
constructor(
private fb: FormBuilder,