Don't force subtasks container be visible on dnd

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-05-23 09:53:46 +02:00
parent 91adb90c8a
commit dc0c93afd7
No known key found for this signature in database
GPG Key ID: 036FA7EB1A599178
2 changed files with 1 additions and 26 deletions

View File

@ -458,10 +458,6 @@
background-color: rgba( $color-primary, .3 );
}
&.dragover > div.subtasks-container > ol {
min-height: 37px;
}
.subtasks-container {
margin-left: 35px;

View File

@ -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
*