Skip to content

Commit 9019b80

Browse files
committed
[CST-4506] Disable drag and drop for access conditions form group
1 parent 8a668a5 commit 9019b80

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/app/shared/form/builder/ds-dynamic-form-ui/models/array-group/dynamic-form-array.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
[cdkDragDisabled]="dragDisabled"
1616
[cdkDragPreviewClass]="'ds-submission-reorder-dragging'">
1717
<!-- Item content -->
18-
<div class="drag-handle" [class.invisible]="dragDisabled" tabindex="0">
19-
<i class="drag-icon fas fa-grip-vertical fa-fw" ></i>
18+
<div class="drag-handle" [class.drag-disable]="dragDisabled" tabindex="0">
19+
<i class="drag-icon fas fa-grip-vertical fa-fw" [class.drag-disable]="dragDisabled" ></i>
2020
</div>
2121
<ng-container *ngTemplateOutlet="startTemplate?.templateRef; context: groupModel"></ng-container>
2222
<ds-dynamic-form-control-container *ngFor="let _model of groupModel.group"

src/app/shared/form/builder/ds-dynamic-form-ui/models/array-group/dynamic-form-array.component.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
:host {
44
display: block;
55
}
6-
6+
.drag-disable {
7+
visibility: hidden !important;
8+
&:hover, &:focus {
9+
cursor: grab;
10+
.drag-icon {
11+
visibility: hidden !important;
12+
}
13+
}
14+
}
715
.cdk-drag {
816
margin-left: calc(-2.3 * var(--bs-spacer));
917
margin-right: calc(-0.5 * var(--bs-spacer));

0 commit comments

Comments
 (0)