[CST-3782] Disabled drag when only one value is present

This commit is contained in:
Alessandro Martelli
2021-02-25 19:07:51 +01:00
parent a6effcad34
commit a66ec43ccc

View File

@@ -10,7 +10,9 @@
role="group"
[formGroupName]="idx"
[ngClass]="[getClass('element', 'group'), getClass('grid', 'group')]"
cdkDrag cdkDragHandle>
cdkDrag
cdkDragHandle
[cdkDragDisabled]="model.groups.length === 1">
<!-- Item content -->
<div *cdkDragPreview>
<div class="alert alert-info">