fix: change formatting
This commit is contained in:
parent
ad66677029
commit
e4274cbfa6
@ -42,7 +42,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
page_title() {
|
page_title() {
|
||||||
return this.items.length
|
return this.items.length
|
||||||
? __(`Results for "${this.search_value}" ${this.category!=='All'? `in category ${this.category}`: ''}`)
|
? __(`Results for "${this.search_value}" ${this.category !== 'All'? `in category ${this.category}` : ''}`)
|
||||||
: __('No Items found.');
|
: __('No Items found.');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -52,9 +52,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
get_items() {
|
get_items() {
|
||||||
if (this.category !== 'All') {
|
if (this.category !== 'All') {
|
||||||
this.filters['hub_category']=this.category;
|
this.filters['hub_category'] = this.category;
|
||||||
}
|
}
|
||||||
hub.call('get_items', { keyword: this.search_value,
|
hub.call('get_items', {
|
||||||
|
keyword: this.search_value,
|
||||||
filters: this.filters
|
filters: this.filters
|
||||||
})
|
})
|
||||||
.then((items) => {
|
.then((items) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user