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

View File

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