draw new field area on button click
This commit is contained in:
@@ -28,7 +28,10 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-1">
|
<div class="flex items-center space-x-1">
|
||||||
<span class="dropdown dropdown-end">
|
<span
|
||||||
|
v-if="field.areas?.length"
|
||||||
|
class="dropdown dropdown-end"
|
||||||
|
>
|
||||||
<label
|
<label
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
title="Areas"
|
title="Areas"
|
||||||
@@ -75,6 +78,17 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
|
<button
|
||||||
|
v-else
|
||||||
|
title="Areas"
|
||||||
|
class="relative cursor-pointer text-base-100 group-hover:text-base-content"
|
||||||
|
@click="$emit('set-draw', field)"
|
||||||
|
>
|
||||||
|
<IconShape
|
||||||
|
:width="18"
|
||||||
|
:stroke-width="1.6"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
class="relative text-base-100 group-hover:text-base-content"
|
class="relative text-base-100 group-hover:text-base-content"
|
||||||
title="Remove"
|
title="Remove"
|
||||||
|
|||||||
Reference in New Issue
Block a user