fix: don't show translate button if signed out

This commit is contained in:
naskya 2023-08-31 22:33:46 +09:00
parent 49dc6df36c
commit c9199fd11c
Signed by: naskya
GPG key ID: 164DFF24E2D40139
2 changed files with 10 additions and 2 deletions

View file

@ -220,7 +220,11 @@
</button>
<XQuoteButton class="button" :note="appearNote" />
<button
v-if="isForeignLanguage && translation == null"
v-if="
$i != null &&
isForeignLanguage &&
translation == null
"
class="button _button accent"
@click.stop="translate"
v-tooltip.noDelay.bottom="i18n.ts.translate"

View file

@ -125,7 +125,11 @@
</button>
<XQuoteButton class="button" :note="appearNote" />
<button
v-if="isForeignLanguage && translation == null"
v-if="
$i != null &&
isForeignLanguage &&
translation == null
"
class="button _button accent"
@click.stop="translate"
v-tooltip.noDelay.bottom="i18n.ts.translate"