Skip to content

Commit

Permalink
add field draw button if without areas
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Nov 5, 2023
1 parent 17da8bd commit 3ade45f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/javascript/template_builder/field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,23 @@
v-else-if="editable"
class="flex items-center space-x-1"
>
<button
v-if="field && !field.areas.length"
title="Draw"
class="relative cursor-pointer text-transparent group-hover:text-base-content"
@click="$emit('set-draw', field)"
>
<IconNewSection
:width="18"
:stroke-width="1.6"
/>
</button>
<span
class="dropdown dropdown-end"
>
<label
tabindex="0"
title="Areas"
title="Settings"
class="cursor-pointer text-transparent group-hover:text-base-content"
>
<IconSettings
Expand Down

0 comments on commit 3ade45f

Please sign in to comment.