Added loading and cancelling to deleting popover

This commit is contained in:
Alexis
2024-06-08 22:00:07 +02:00
parent 721e26d8e4
commit 6738ac76c4
2 changed files with 55 additions and 14 deletions

View File

@@ -148,7 +148,7 @@ function handleCancel() {
</div>
</div>
<div class="flex gap-2 justify-end">
<footer class="flex gap-2 justify-end">
<Transition name="fade-delay">
<UiButton v-if="isLoading" type="button" size="sm" variant="destructive" @click.prevent="handleCancel">
Annuler
@@ -160,9 +160,9 @@ function handleCancel() {
<PhCircleNotch v-if="isLoading" size="20" class="animate-spin"/>
</Transition>
Sauvegarder
Enregistrer
</UiButton>
</div>
</footer>
</form>
</UiAlertDialogContent>
</UiAlertDialog>