Skip to content
Snippets Groups Projects
Unverified Commit 7967af9e authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Fix nom des fonctions

parent 73e83ff1
No related tags found
1 merge request!286Bouton suppression de tranche de barème seulement pour les nouvelles tranches
Pipeline #18777 passed
......@@ -160,7 +160,7 @@
}
}
function deleteOldBracket(index: number) {
function disableBracket(index: number) {
// Crée une copie de scaleAtInstant pour éviter toute mutation directe
scaleAtInstant = [...(scaleAtInstant as ScaleAtInstant)]
......@@ -186,7 +186,7 @@
}
}
function deleteNewBracket(index: number) {
function deleteBracket(index: number) {
scaleAtInstant = [...(scaleAtInstant as ScaleAtInstant)]
scaleAtInstant.splice(index, 1)
dispatch("change", scaleAtInstant)
......@@ -269,7 +269,7 @@
<button
aria-label="Supprimer la nouvelle tranche"
class="group mb-1 rounded p-1 hover:bg-gray-200 active:bg-gray-300"
onclick={() => deleteNewBracket(index)}
onclick={() => deleteBracket(index)}
title="Supprimer"
type="button"
>
......@@ -282,7 +282,7 @@
<button
aria-label="Supprimer la tranche"
class="group mb-1 rounded p-1 hover:bg-gray-200 active:bg-gray-300"
onclick={() => deleteOldBracket(index)}
onclick={() => disableBracket(index)}
title="Supprimer"
type="button"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment