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"
|
||||
[cdkDragPreviewClass]="'ds-submission-reorder-dragging'">
|
||||
<!-- Item content -->
|
||||
<div class="drag-handle" [class.invisible]="dragDisabled" tabindex="0">
|
||||
<i class="drag-icon fas fa-grip-vertical fa-fw" ></i>
|
||||
<div class="drag-handle" [class.drag-disable]="dragDisabled" tabindex="0">
|
||||
<i class="drag-icon fas fa-grip-vertical fa-fw" [class.drag-disable]="dragDisabled" ></i>
|
||||
</div>
|
||||
<ng-container *ngTemplateOutlet="startTemplate?.templateRef; context: groupModel"></ng-container>
|
||||
<ds-dynamic-form-control-container *ngFor="let _model of groupModel.group"
|
||||
|
@@ -3,7 +3,15 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.drag-disable {
|
||||
visibility: hidden !important;
|
||||
&:hover, &:focus {
|
||||
cursor: grab;
|
||||
.drag-icon {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cdk-drag {
|
||||
margin-left: calc(-2.3 * var(--bs-spacer));
|
||||
margin-right: calc(-0.5 * var(--bs-spacer));
|
||||
|
Reference in New Issue
Block a user