Don't allow dragging a list when the user does not have the rights
This commit is contained in:
parent
8a08a41a3c
commit
3c2d89a0f6
4 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,8 @@
|
|||
@end="e => saveListPosition(e, nk)"
|
||||
v-bind="dragOptions"
|
||||
handle=".handle"
|
||||
:disabled="n.id < 0"
|
||||
:class="{'dragging-disabled': n.id < 0}"
|
||||
>
|
||||
<transition-group
|
||||
type="transition"
|
||||
|
|
|
@ -157,3 +157,7 @@ button.table {
|
|||
.is-touch .handle {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.dragging-disabled .handle {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
group="buckets"
|
||||
v-bind="dragOptions"
|
||||
:disabled="!canWrite"
|
||||
:class="{'dragging-disabled': !canWrite}"
|
||||
>
|
||||
<transition-group type="transition" :name="!dragBucket ? 'move-bucket': null" tag="div" class="kanban-bucket-container">
|
||||
<div
|
||||
|
@ -128,6 +129,7 @@
|
|||
:group="{name: 'tasks', put: shouldAcceptDrop(bucket) && !dragBucket}"
|
||||
v-bind="dragOptions"
|
||||
:disabled="!canWrite"
|
||||
:class="{'dragging-disabled': !canWrite}"
|
||||
:data-bucket-index="k"
|
||||
class="dropper"
|
||||
>
|
||||
|
|
|
@ -87,6 +87,8 @@
|
|||
@end="saveTaskPosition"
|
||||
v-bind="dragOptions"
|
||||
handle=".handle"
|
||||
:disabled="!canWrite"
|
||||
:class="{'dragging-disabled': !canWrite}"
|
||||
>
|
||||
<single-task-in-list
|
||||
:show-list-color="false"
|
||||
|
|
Loading…
Reference in a new issue