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)"
|
@end="e => saveListPosition(e, nk)"
|
||||||
v-bind="dragOptions"
|
v-bind="dragOptions"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
:disabled="n.id < 0"
|
||||||
|
:class="{'dragging-disabled': n.id < 0}"
|
||||||
>
|
>
|
||||||
<transition-group
|
<transition-group
|
||||||
type="transition"
|
type="transition"
|
||||||
|
|
|
@ -157,3 +157,7 @@ button.table {
|
||||||
.is-touch .handle {
|
.is-touch .handle {
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dragging-disabled .handle {
|
||||||
|
opacity: 0 !important;
|
||||||
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
group="buckets"
|
group="buckets"
|
||||||
v-bind="dragOptions"
|
v-bind="dragOptions"
|
||||||
:disabled="!canWrite"
|
:disabled="!canWrite"
|
||||||
|
:class="{'dragging-disabled': !canWrite}"
|
||||||
>
|
>
|
||||||
<transition-group type="transition" :name="!dragBucket ? 'move-bucket': null" tag="div" class="kanban-bucket-container">
|
<transition-group type="transition" :name="!dragBucket ? 'move-bucket': null" tag="div" class="kanban-bucket-container">
|
||||||
<div
|
<div
|
||||||
|
@ -128,6 +129,7 @@
|
||||||
:group="{name: 'tasks', put: shouldAcceptDrop(bucket) && !dragBucket}"
|
:group="{name: 'tasks', put: shouldAcceptDrop(bucket) && !dragBucket}"
|
||||||
v-bind="dragOptions"
|
v-bind="dragOptions"
|
||||||
:disabled="!canWrite"
|
:disabled="!canWrite"
|
||||||
|
:class="{'dragging-disabled': !canWrite}"
|
||||||
:data-bucket-index="k"
|
:data-bucket-index="k"
|
||||||
class="dropper"
|
class="dropper"
|
||||||
>
|
>
|
||||||
|
|
|
@ -87,6 +87,8 @@
|
||||||
@end="saveTaskPosition"
|
@end="saveTaskPosition"
|
||||||
v-bind="dragOptions"
|
v-bind="dragOptions"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
|
:disabled="!canWrite"
|
||||||
|
:class="{'dragging-disabled': !canWrite}"
|
||||||
>
|
>
|
||||||
<single-task-in-list
|
<single-task-in-list
|
||||||
:show-list-color="false"
|
:show-list-color="false"
|
||||||
|
|
Loading…
Reference in a new issue