mirror of
https://github.com/gotson/komga.git
synced 2025-12-19 23:12:47 +01:00
feat(webui): add refresh button and unavailable status to media analysis view
This commit is contained in:
parent
b1fd257a14
commit
a116d17883
1 changed files with 13 additions and 0 deletions
|
|
@ -16,6 +16,18 @@
|
|||
<template v-slot:item.name="{ item }">
|
||||
<router-link :to="{name:'browse-book', params: {bookId: item.id}}">{{ item.name }}</router-link>
|
||||
</template>
|
||||
|
||||
<template v-slot:item.deleted="{ item }">
|
||||
<v-chip
|
||||
v-if="item.deleted"
|
||||
label small color="error">
|
||||
{{ $t('common.unavailable') }}
|
||||
</v-chip>
|
||||
</template>
|
||||
|
||||
<template v-slot:footer.prepend>
|
||||
<v-btn icon @click="loadBooks"><v-icon>mdi-refresh</v-icon></v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-container>
|
||||
</template>
|
||||
|
|
@ -53,6 +65,7 @@ export default Vue.extend({
|
|||
{text: this.$i18n.t('media_analysis.media_type').toString(), value: 'media.mediaType'},
|
||||
{text: this.$i18n.t('media_analysis.url').toString(), value: 'url'},
|
||||
{text: this.$i18n.t('media_analysis.size').toString(), value: 'size'},
|
||||
{text: '', value: 'deleted', groupable: false, sortable: false},
|
||||
]
|
||||
},
|
||||
booksData():BookDto[] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue