mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-4506] Disable drag and drop for access conditions form group
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
[cdkDragDisabled]="dragDisabled"
|
[cdkDragDisabled]="dragDisabled"
|
||||||
[cdkDragPreviewClass]="'ds-submission-reorder-dragging'">
|
[cdkDragPreviewClass]="'ds-submission-reorder-dragging'">
|
||||||
<!-- Item content -->
|
<!-- Item content -->
|
||||||
<div class="drag-handle" [class.invisible]="dragDisabled" tabindex="0">
|
<div class="drag-handle" [class.drag-disable]="dragDisabled" tabindex="0">
|
||||||
<i class="drag-icon fas fa-grip-vertical fa-fw" ></i>
|
<i class="drag-icon fas fa-grip-vertical fa-fw" [class.drag-disable]="dragDisabled" ></i>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngTemplateOutlet="startTemplate?.templateRef; context: groupModel"></ng-container>
|
<ng-container *ngTemplateOutlet="startTemplate?.templateRef; context: groupModel"></ng-container>
|
||||||
<ds-dynamic-form-control-container *ngFor="let _model of groupModel.group"
|
<ds-dynamic-form-control-container *ngFor="let _model of groupModel.group"
|
||||||
|
@@ -3,7 +3,15 @@
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.drag-disable {
|
||||||
|
visibility: hidden !important;
|
||||||
|
&:hover, &:focus {
|
||||||
|
cursor: grab;
|
||||||
|
.drag-icon {
|
||||||
|
visibility: hidden !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.cdk-drag {
|
.cdk-drag {
|
||||||
margin-left: calc(-2.3 * var(--bs-spacer));
|
margin-left: calc(-2.3 * var(--bs-spacer));
|
||||||
margin-right: calc(-0.5 * var(--bs-spacer));
|
margin-right: calc(-0.5 * var(--bs-spacer));
|
||||||
|
Reference in New Issue
Block a user