mirror of
https://github.com/frappe/books.git
synced 2025-01-23 23:28:24 +00:00
fix: return no classes if searcher not injected
This commit is contained in:
parent
648a82ce08
commit
075f783ffe
@ -149,7 +149,10 @@
|
|||||||
<p>↑↓ {{ t`Navigate` }}</p>
|
<p>↑↓ {{ t`Navigate` }}</p>
|
||||||
<p>↩ {{ t`Select` }}</p>
|
<p>↩ {{ t`Select` }}</p>
|
||||||
<p><span class="tracking-tighter">esc</span> {{ t`Close` }}</p>
|
<p><span class="tracking-tighter">esc</span> {{ t`Close` }}</p>
|
||||||
<button class="flex items-center hover:text-gray-800" @click="openDocs">
|
<button
|
||||||
|
class="flex items-center hover:text-gray-800"
|
||||||
|
@click="openDocs"
|
||||||
|
>
|
||||||
<feather-icon name="help-circle" class="w-4 h-4 mr-1" />
|
<feather-icon name="help-circle" class="w-4 h-4 mr-1" />
|
||||||
{{ t`Help` }}
|
{{ t`Help` }}
|
||||||
</button>
|
</button>
|
||||||
@ -317,6 +320,10 @@ export default {
|
|||||||
ref.scrollIntoView({ block: 'nearest' });
|
ref.scrollIntoView({ block: 'nearest' });
|
||||||
},
|
},
|
||||||
getGroupFilterButtonClass(g) {
|
getGroupFilterButtonClass(g) {
|
||||||
|
if (!this.searcher) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
const isOn = this.searcher.filters.groupFilters[g];
|
const isOn = this.searcher.filters.groupFilters[g];
|
||||||
const color = this.groupColorMap[g];
|
const color = this.groupColorMap[g];
|
||||||
if (isOn) {
|
if (isOn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user