From 0c5d8356ed43b5f924429a747f28a59706ed5916 Mon Sep 17 00:00:00 2001
From: mlbonhomme <bonhomme@teklia.com>
Date: Wed, 24 Apr 2024 14:39:27 +0200
Subject: [PATCH] Actually use 'loading' in the Folder creation modal

---
 src/components/Navigation/AddFolderModal.vue | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/components/Navigation/AddFolderModal.vue b/src/components/Navigation/AddFolderModal.vue
index d31369809..99ba24395 100644
--- a/src/components/Navigation/AddFolderModal.vue
+++ b/src/components/Navigation/AddFolderModal.vue
@@ -92,6 +92,7 @@ export default {
     ...mapMutations('notifications', ['notify']),
     async addFolder () {
       if (this.loading || !this.canWrite(this.corpus) || !this.typeSlug || !this.name) return
+      this.loading = true
       try {
         const folder = await this.$store.dispatch('elements/create', {
           corpus: this.corpusId,
-- 
GitLab