Make header the drag handler

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-08-05 08:28:59 +02:00
parent d9dcd59ae1
commit 97feb89a4b
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -8,7 +8,7 @@
:ref="'status-' + status" />
</div>
<Draggable v-model="layout" class="panels" @end="saveLayout">
<Draggable v-model="layout" class="panels" @end="saveLayout" handle=".panel--header">
<div v-for="panelId in layout" :key="panels[panelId].id" class="panel">
<div class="panel--header">
<h3 :class="panels[panelId].iconClass">