fix: add conditional message in template string

This commit is contained in:
Mangesh-Khairnar 2019-11-29 23:59:02 +05:30
parent 2597817cde
commit ad66677029

View File

@ -42,7 +42,7 @@ export default {
computed: {
page_title() {
return this.items.length
? __(`Results for <strong>${this.search_value}<strong> in category ${this.category}`)
? __(`Results for "${this.search_value}" ${this.category!=='All'? `in category ${this.category}`: ''}`)
: __('No Items found.');
}
},