Skip to content

Commit

Permalink
fix duplicated audit files
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq committed Jul 26, 2024
1 parent fc1231d commit 02c0a88
Showing 1 changed file with 0 additions and 65 deletions.
65 changes: 0 additions & 65 deletions confiture-web-app/src/components/ui/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,71 +221,6 @@ function onFileRequestFinished() {
</li>
</ul>
</div>

<!-- Audit files -->
<ul class="files">
<li v-for="auditFile in auditFiles" :key="auditFile.id">
<img
v-if="auditFile.thumbnailKey"
class="fr-icon--lg file-thumbnail"
:src="getUploadUrl(auditFile.thumbnailKey)"
alt=""
loading="lazy"
width="80"
height="80"
/>
<span
v-else
class="fr-icon--lg file-thumbnail__default fr-icon-file-text-line"
loading="lazy"
>
</span>
<div class="file-link">
<span>{{ getFileName(auditFile) }}</span
><br />
<span class="fr-hint-text">{{ getFileDetails(auditFile) }}</span>
</div>
<ul class="fr-btns-group fr-btns-group--inline">
<li v-if="isViewable(auditFile)">
<a
class="fr-btn fr-btn fr-btn--tertiary-no-outline fr-icon-eye-line fr-mb-0"
:href="getUploadUrl(auditFile.key)"
:disabled="isOffline"
target="_blank"
:title="
'Voir ' + getFullFileName(auditFile) + ' - nouvelle fenêtre'
"
>
Voir
<span class="fr-sr-only">{{ getFullFileName(auditFile) }}</span>
</a>
</li>
<li>
<a
class="fr-btn fr-btn--tertiary-no-outline fr-icon-download-line fr-mb-0"
download
:href="getUploadUrl(auditFile.key)"
:disabled="isOffline"
:title="'Télécharger ' + getFullFileName(auditFile)"
>
Télécharger
<span class="fr-sr-only">{{ getFullFileName(auditFile) }}</span>
</a>
</li>
<li v-if="!readonly">
<button
class="fr-btn fr-btn--tertiary-no-outline fr-icon-delete-bin-line fr-mb-0"
:disabled="isOffline"
:title="'Supprimer ' + getFullFileName(auditFile)"
@click="deleteFile(auditFile)"
>
Supprimer
<span class="fr-sr-only">{{ getFullFileName(auditFile) }}</span>
</button>
</li>
</ul>
</li>
</ul>
</template>

<style scoped>
Expand Down

0 comments on commit 02c0a88

Please sign in to comment.