|
@@ -227,6 +227,10 @@
|
|
<div v-show="list.totalFound > 0" class="text-bold" style="font-size: 120%; padding-bottom: 2px">
|
|
<div v-show="list.totalFound > 0" class="text-bold" style="font-size: 120%; padding-bottom: 2px">
|
|
{{ foundCountMessage }}
|
|
{{ foundCountMessage }}
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div v-show="list.totalFound > 0 && isExtendedSearch" class="q-ml-md">
|
|
|
|
+ <q-checkbox v-model="showJson" size="36px" label="Показывать JSON" />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Формирование списка ------------------------------------------------------------------------>
|
|
<!-- Формирование списка ------------------------------------------------------------------------>
|
|
@@ -361,6 +365,9 @@ const componentOptions = {
|
|
langDefault() {
|
|
langDefault() {
|
|
this.updateSearchFromRouteQuery(this.$route);
|
|
this.updateSearchFromRouteQuery(this.$route);
|
|
},
|
|
},
|
|
|
|
+ showJson(newValue) {
|
|
|
|
+ this.setSetting('showJson', newValue);
|
|
|
|
+ },
|
|
list: {
|
|
list: {
|
|
handler(newValue) {
|
|
handler(newValue) {
|
|
this.updateGenreTreeIfNeeded();
|
|
this.updateGenreTreeIfNeeded();
|
|
@@ -433,6 +440,7 @@ class Search {
|
|
langDefault = '';
|
|
langDefault = '';
|
|
limit = 20;
|
|
limit = 20;
|
|
extendedParams = false;
|
|
extendedParams = false;
|
|
|
|
+ showJson = false;
|
|
|
|
|
|
//stuff
|
|
//stuff
|
|
prevList = {};
|
|
prevList = {};
|
|
@@ -525,6 +533,7 @@ class Search {
|
|
this.expandedSeries = _.cloneDeep(settings.expandedSeries);
|
|
this.expandedSeries = _.cloneDeep(settings.expandedSeries);
|
|
this.abCacheEnabled = settings.abCacheEnabled;
|
|
this.abCacheEnabled = settings.abCacheEnabled;
|
|
this.langDefault = settings.langDefault;
|
|
this.langDefault = settings.langDefault;
|
|
|
|
+ this.showJson = settings.showJson;
|
|
}
|
|
}
|
|
|
|
|
|
recvMessage(d) {
|
|
recvMessage(d) {
|