Добавлена настройка "Показывать жанры"

This commit is contained in:
Book Pauk
2022-09-25 13:44:58 +07:00
parent 5e3fe21c25
commit 1cfa787e5a
3 changed files with 24 additions and 1 deletions

View File

@@ -17,7 +17,7 @@
<q-icon name="la la-copy" size="20px" />
</div>
<div class="q-ml-sm">
<div v-if="showGenres" class="q-ml-sm">
{{ bookGenre }}
</div>
@@ -33,6 +33,9 @@ const componentOptions = {
components: {
},
watch: {
settings() {
this.loadSettings();
},
}
};
class BookView {
@@ -42,7 +45,20 @@ class BookView {
genreTree: Array,
};
showGenres = true;
created() {
this.loadSettings();
}
loadSettings() {
const settings = this.settings;
this.showGenres = settings.showGenres;
}
get settings() {
return this.$store.state.settings;
}
get bookSize() {