Don't treat regular edit fields as drop targets

[ci skip]
pull/7484/head
Oliver Günther 5 years ago
parent cdd79ac284
commit c2e1abbb8c
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      frontend/src/app/components/wp-form-group/wp-attribute-group.template.html

@ -19,12 +19,12 @@
<wp-edit-field *ngIf="descriptor.field!.isFormattable"
class="wp-edit-formattable-field"
[workPackageId]="workPackage.id"
[isDropTarget]="true"
[fieldName]="descriptor.name">
</wp-edit-field>
<wp-edit-field *ngIf="!descriptor.field.isFormattable"
[workPackageId]="workPackage.id"
[fieldName]="descriptor.name"
[isDropTarget]="true"
[ngClass]="descriptor.field!.schema.type === 'String' ? 'wp-edit-field--text' : ''">
</wp-edit-field>
</div>

Loading…
Cancel
Save