Skip to content

Commit

Permalink
feat(webui): add refresh button and unavailable status to media analy…
Browse files Browse the repository at this point in the history
…sis view
  • Loading branch information
gotson committed Jan 25, 2022
1 parent b1fd257 commit a116d17
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions komga-webui/src/views/SettingsMediaAnalysis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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[] {
Expand Down

0 comments on commit a116d17

Please sign in to comment.