Feature base button below modals etc
This commit is contained in:
parent
0fe038d8c3
commit
f56cee5acd
|
|
@ -1,8 +1,11 @@
|
||||||
|
<template></template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {onMounted} from "vue";
|
import {onMounted} from "vue";
|
||||||
|
|
||||||
const scriptLoaded = ref(false);
|
const scriptLoaded = ref(false);
|
||||||
const user = computed(() => useAuthStore().user);
|
const authStore = useAuthStore()
|
||||||
|
const user = computed(() => authStore.user)
|
||||||
|
const isImpersonating = computed(() => authStore.isImpersonating)
|
||||||
const featureBaseOrganization = useRuntimeConfig().public.featureBaseOrganization;
|
const featureBaseOrganization = useRuntimeConfig().public.featureBaseOrganization;
|
||||||
|
|
||||||
const loadScript = () => {
|
const loadScript = () => {
|
||||||
|
|
@ -15,7 +18,7 @@ const loadScript = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const setupForUser = () => {
|
const setupForUser = () => {
|
||||||
if (process.server || !user.value || !featureBaseOrganization) return
|
if (process.server || !user.value || !featureBaseOrganization ||isImpersonating.value) return
|
||||||
window.Featurebase(
|
window.Featurebase(
|
||||||
"identify",
|
"identify",
|
||||||
{
|
{
|
||||||
|
|
@ -68,4 +71,9 @@ watch(user, (val) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<template></template>
|
|
||||||
|
<style>
|
||||||
|
.fb-feedback-widget-feedback-button {
|
||||||
|
z-index: 20 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue