mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat: better tooltips for upload failure
This commit is contained in:
parent
0e634a33a8
commit
4a7f1a2a9a
1 changed files with 11 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
|||
<span class="details">
|
||||
<span class="name">{{ file.name }}</span>
|
||||
<span class="controls">
|
||||
<span v-if="file.status === 'Errored'" v-koel-tooltip.left :title="file.message" class="info">
|
||||
<Icon :icon="faInfoCircle" :title="file.message" />
|
||||
</span>
|
||||
<Btn v-if="canRetry" icon-only title="Retry" transparent unrounded @click="retry">
|
||||
<Icon :icon="faRotateBack" />
|
||||
</Btn>
|
||||
|
@ -17,7 +20,7 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import slugify from 'slugify'
|
||||
import { faRotateBack, faTrashCan } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faInfoCircle, faRotateBack, faTrashCan } from '@fortawesome/free-solid-svg-icons'
|
||||
import { computed, defineAsyncComponent, toRefs } from 'vue'
|
||||
import { UploadFile, uploadService } from '@/services'
|
||||
|
||||
|
@ -81,10 +84,17 @@ const retry = () => uploadService.retry(file.value)
|
|||
.name {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
.info {
|
||||
padding: 0 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
button {
|
||||
|
|
Loading…
Reference in a new issue