fix: address some hydration issues

This commit is contained in:
Daniel Roe 2022-12-26 08:45:56 +01:00
parent 72855d7725
commit 3e3a241474
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55
4 changed files with 8 additions and 8 deletions

View file

@ -13,7 +13,7 @@ useHeadFixed({
</script>
<template>
<CommonAlert v-if="!hideNewsTips" @close="hideNewsTips = true">
<CommonAlert v-if="isHydrated.value && !hideNewsTips" @close="hideNewsTips = true">
<p>{{ $t('tooltip.explore_posts_intro') }}</p>
</CommonAlert>
<!-- TODO: Tabs for trending statuses, tags, and links -->

View file

@ -15,7 +15,7 @@ useHeadFixed({
</script>
<template>
<CommonAlert v-if="!hideNewsTips" @close="hideNewsTips = true">
<CommonAlert v-if="isHydrated.value && !hideNewsTips" @close="hideNewsTips = true">
<p>{{ $t('tooltip.explore_links_intro') }}</p>
</CommonAlert>

View file

@ -22,7 +22,7 @@ useHeadFixed({
</script>
<template>
<CommonAlert v-if="!hideTagsTips && data && data.length" @close="hideTagsTips = true">
<CommonAlert v-if="isHydrated.value && !hideTagsTips && data && data.length" @close="hideTagsTips = true">
<p>{{ $t('tooltip.explore_tags_intro') }}</p>
</CommonAlert>