Don't force subtasks container be visible on dnd
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
91adb90c8a
commit
dc0c93afd7
|
@ -458,10 +458,6 @@
|
|||
background-color: rgba( $color-primary, .3 );
|
||||
}
|
||||
|
||||
&.dragover > div.subtasks-container > ol {
|
||||
min-height: 37px;
|
||||
}
|
||||
|
||||
.subtasks-container {
|
||||
margin-left: 35px;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
:move="onMove"
|
||||
@end="onEnd"
|
||||
>
|
||||
<slot :move="onMove" />
|
||||
<slot />
|
||||
</draggable>
|
||||
</template>
|
||||
|
||||
|
@ -53,16 +53,6 @@ export default {
|
|||
'setStart',
|
||||
]),
|
||||
|
||||
/**
|
||||
* Called when a task is dragged.
|
||||
*
|
||||
* @param {Object} $event The event which caused the move
|
||||
*/
|
||||
onMove: function($event) {
|
||||
this.cleanUpDragging()
|
||||
$event.related.classList.add('dragover')
|
||||
},
|
||||
|
||||
/**
|
||||
* Called when a task is dropped.
|
||||
*
|
||||
|
@ -78,20 +68,9 @@ export default {
|
|||
// Move the task to a new calendar or parent.
|
||||
this.prepareMoving(task, $event)
|
||||
this.prepareCollecting(task, $event)
|
||||
this.cleanUpDragging()
|
||||
$event.stopPropagation()
|
||||
},
|
||||
|
||||
/**
|
||||
* Called when we stopped dragging. Cleans up temporarily added classes.
|
||||
*/
|
||||
cleanUpDragging: function() {
|
||||
var items = document.getElementsByClassName('task-item')
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
items[i].classList.remove('dragover')
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Function to move a task to a new calendar or parent
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue