Skip to content

Commit f56cee5

Browse files
committed
Feature base button below modals etc
1 parent 0fe038d commit f56cee5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

client/components/vendor/FeatureBase.vue

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
<template></template>
12
<script setup>
23
import {onMounted} from "vue";
34
45
const scriptLoaded = ref(false);
5-
const user = computed(() => useAuthStore().user);
6+
const authStore = useAuthStore()
7+
const user = computed(() => authStore.user)
8+
const isImpersonating = computed(() => authStore.isImpersonating)
69
const featureBaseOrganization = useRuntimeConfig().public.featureBaseOrganization;
710
811
const loadScript = () => {
@@ -15,7 +18,7 @@ const loadScript = () => {
1518
};
1619
1720
const setupForUser = () => {
18-
if (process.server || !user.value || !featureBaseOrganization) return
21+
if (process.server || !user.value || !featureBaseOrganization ||isImpersonating.value) return
1922
window.Featurebase(
2023
"identify",
2124
{
@@ -68,4 +71,9 @@ watch(user, (val) => {
6871
});
6972
7073
</script>
71-
<template></template>
74+
75+
<style>
76+
.fb-feedback-widget-feedback-button {
77+
z-index: 20 !important;
78+
}
79+
</style>

0 commit comments

Comments
 (0)