Добавлена ссылка "читать"

This commit is contained in:
Book Pauk
2022-09-30 17:32:05 +07:00
parent 55b4cc39d9
commit d3f1e19b8f
4 changed files with 23 additions and 7 deletions

View File

@@ -40,6 +40,10 @@
<q-icon name="la la-copy" size="20px" />
</div>
<div v-if="config.bookReadLink" class="q-ml-sm clickable" @click="readBook">
(читать)
</div>
<div v-if="showGenres && book.genre" class="q-ml-sm">
{{ bookGenre }}
</div>
@@ -86,6 +90,10 @@ class BookView {
this.showDeleted = settings.showDeleted;
}
get config() {
return this.$store.state.config;
}
get settings() {
return this.$store.state.settings;
}
@@ -132,6 +140,10 @@ class BookView {
copyLink() {
this.$emit('bookEvent', {action: 'copyLink', book: this.book});
}
readBook() {
this.$emit('bookEvent', {action: 'readBook', book: this.book});
}
}
export default vueComponent(BookView);