add search tab

This commit is contained in:
polv committed 2021-10-31 19:52:49 +07:00
1 parent f62a342fbd
commit 86a558dfb5
4 files changed
+148 -8

No files matched your search

+9 -3
View File
@@ -44,17 +44,23 @@
<a></a>
</li>
<li v-if="entry && type === 'vocabulary'">
<a role="button" @click="openInNewTab('Vocabulary', { entry })">
<a
role="button"
@click="openInNewTab('Dictionary', { entry, type: 'vocabulary' })"
>
Show details
</a>
</li>
<li v-if="entry">
<a role="button" @click="openInNewTab('Character', { q: entry })">
<a
role="button"
@click="openInNewTab('Dictionary', { entry, type: 'character' })"
>
{{ type === 'character' ? 'Show details' : 'Search for Kanji' }}
</a>
</li>
<li v-if="entry && type !== 'character'">
<a role="button" @click="openInNewTab('Vocabulary', { q: entry })">
<a role="button" @click="openInNewTab('Dictionary', { entry, type })">
Search for vocabs
</a>
</li>