Skip to content

Commit

Permalink
disable buttons when drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Feb 4, 2025
1 parent 064fd61 commit b1f9b82
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions envergo/templates/hedges/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ <h3>
</th>
<td>
<button class="fr-btn fr-btn--tertiary-no-outline"
@click.stop="showHedgeModal(hedge, hedge.type)">
@click.stop="showHedgeModal(hedge, hedge.type)"
:disabled="hedgeInDrawing">
[[ mode === 'removal' ? 'Modifier' : 'Voir la description' ]]
</button>
</td>
<td v-if="mode === 'removal'">
<button class="fr-btn fr-btn--tertiary-no-outline"
@click.stop="hedge.remove()">Supprimer</button>
@click.stop="hedge.remove()"
:disabled="hedgeInDrawing">Supprimer</button>
</td>
<td>[[ hedge.length.toFixed(0) ]] m</td>
</tr>
Expand Down Expand Up @@ -144,14 +146,16 @@ <h3>
</th>
<td>
<button class="fr-btn fr-btn--tertiary-no-outline"
@click.stop="showHedgeModal(hedge, hedge.type)">
@click.stop="showHedgeModal(hedge, hedge.type)"
:disabled="hedgeInDrawing">
[[ mode === 'plantation' ? 'Modifier' : 'Voir la description' ]]
</button>
</td>
<td>
<button v-if="mode === 'plantation'"
class="fr-btn fr-btn--tertiary-no-outline"
@click.stop="hedge.remove()">Supprimer</button>
@click.stop="hedge.remove()"
:disabled="hedgeInDrawing">Supprimer</button>
</td>
<td>[[ hedge.length.toFixed(0) ]] m</td>
</tr>
Expand Down

0 comments on commit b1f9b82

Please sign in to comment.