Добавлена ссылка "читать"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user