From ba6bd2a88ecc95fec1019e341eb75df04eb2f436 Mon Sep 17 00:00:00 2001
From: Theo Lesage <tlesage@teklia.com>
Date: Fri, 3 May 2024 08:10:25 +0000
Subject: [PATCH] Always display transcriptions as folders elements can need
 them

---
 src/components/Element/DetailsPanel.vue | 44 ++++++++++++-------------
 1 file changed, 21 insertions(+), 23 deletions(-)

diff --git a/src/components/Element/DetailsPanel.vue b/src/components/Element/DetailsPanel.vue
index c6e156a42..f783c56fc 100644
--- a/src/components/Element/DetailsPanel.vue
+++ b/src/components/Element/DetailsPanel.vue
@@ -31,31 +31,29 @@
         <hr />
       </template>
 
-      <template v-if="elementType.folder === false">
-        <DropdownContent id="transcriptions" title="Transcriptions">
-          <Transcriptions :element="element" />
-          <template v-if="canWriteElement(elementId)">
-            <div class="has-text-right">
-              <a v-on:click="transcriptionModal = true">
-                <button class="button has-text">
-                  manage
-                </button>
-              </a>
-            </div>
-            <TranscriptionsModal
-              v-if="transcriptionModal"
-              v-model:modal="transcriptionModal"
-              :element="element"
-            />
-          </template>
-        </DropdownContent>
-        <hr />
+      <DropdownContent id="transcriptions" title="Transcriptions">
+        <Transcriptions :element="element" />
         <template v-if="canWriteElement(elementId)">
-          <DropdownContent id="new-transcription" title="New transcription">
-            <TranscriptionCreationForm :element="element" />
-          </DropdownContent>
-          <hr />
+          <div class="has-text-right">
+            <a v-on:click="transcriptionModal = true">
+              <button class="button has-text">
+                manage
+              </button>
+            </a>
+          </div>
+          <TranscriptionsModal
+            v-if="transcriptionModal"
+            v-model:modal="transcriptionModal"
+            :element="element"
+          />
         </template>
+      </DropdownContent>
+      <hr />
+      <template v-if="canWriteElement(elementId)">
+        <DropdownContent id="new-transcription" title="New transcription">
+          <TranscriptionCreationForm :element="element" />
+        </DropdownContent>
+        <hr />
       </template>
 
       <DropdownContent id="metadata" title="Metadata">
-- 
GitLab