Commit f56cee5 1 parent 0fe038d commit f56cee5 Copy full SHA for f56cee5
File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ <template ></template >
1
2
<script setup>
2
3
import {onMounted } from " vue" ;
3
4
4
5
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 )
6
9
const featureBaseOrganization = useRuntimeConfig ().public .featureBaseOrganization ;
7
10
8
11
const loadScript = () => {
@@ -15,7 +18,7 @@ const loadScript = () => {
15
18
};
16
19
17
20
const setupForUser = () => {
18
- if (process .server || ! user .value || ! featureBaseOrganization) return
21
+ if (process .server || ! user .value || ! featureBaseOrganization || isImpersonating . value ) return
19
22
window .Featurebase (
20
23
" identify" ,
21
24
{
@@ -68,4 +71,9 @@ watch(user, (val) => {
68
71
});
69
72
70
73
< / script>
71
- < template>< / template>
74
+
75
+ < style>
76
+ .fb - feedback- widget- feedback- button {
77
+ z- index: 20 ! important;
78
+ }
79
+ < / style>
You can’t perform that action at this time.
0 commit comments