Browse Source

Hint for nested fields.

pull/344/head
Sebastian Stehle 8 years ago
parent
commit
7c46213e4b
  1. 8
      src/Squidex/app/features/content/shared/array-editor.component.html

8
src/Squidex/app/features/content/shared/array-editor.component.html

@ -20,6 +20,10 @@
</div>
</div>
<button class="btn btn-success" (click)="addItem(undefined); $event.preventDefault()">
<button class="btn btn-success" [disabled]="field.nested.length === 0" (click)="addItem(undefined); $event.preventDefault()">
Add Item
</button>
</button>
<small class="text-muted ml-2" *ngIf="field.nested.length === 0">
Add a nested field first to add items.
</small>
Loading…
Cancel
Save