Style new changes badge
This commit is contained in:
parent
530f05d228
commit
71031d0a6d
|
|
@ -38,7 +38,11 @@
|
||||||
class="text-sm text-gray-600 dark:text-white hidden sm:inline hover:text-gray-800 cursor-pointer mt-1 mr-8"
|
class="text-sm text-gray-600 dark:text-white hidden sm:inline hover:text-gray-800 cursor-pointer mt-1 mr-8"
|
||||||
@click.prevent="openChangelog"
|
@click.prevent="openChangelog"
|
||||||
>
|
>
|
||||||
What's new? <span id="fb-update-badge" />
|
What's new? <span
|
||||||
|
v-if="hasNewChanges"
|
||||||
|
id="fb-update-badge"
|
||||||
|
class="bg-blue-500 rounded-full px-2 ml-1 text-white"
|
||||||
|
/>
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
v-else
|
v-else
|
||||||
|
|
@ -68,7 +72,7 @@
|
||||||
<span v-if="user">Upgrade</span>
|
<span v-if="user">Upgrade</span>
|
||||||
<span v-else>Pricing</span>
|
<span v-else>Pricing</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
:href="helpUrl"
|
:href="helpUrl"
|
||||||
class="text-sm text-gray-600 dark:text-white hover:text-gray-800 cursor-pointer mt-1"
|
class="text-sm text-gray-600 dark:text-white hover:text-gray-800 cursor-pointer mt-1"
|
||||||
|
|
@ -332,6 +336,10 @@ export default {
|
||||||
this.config.public.crispWebsiteId !== ""
|
this.config.public.crispWebsiteId !== ""
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
hasNewChanges() {
|
||||||
|
if (import.meta.server) return false
|
||||||
|
return window.Featurebase("unviewed_changelog_count") > 0
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue