Hide featurebase on public form pages
This commit is contained in:
parent
87789b3f5e
commit
3aa80b2b75
|
|
@ -116,6 +116,7 @@ await loadForm(true)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
crisp.hideChat()
|
crisp.hideChat()
|
||||||
|
document.body.classList.add('public-page')
|
||||||
if (form.value) {
|
if (form.value) {
|
||||||
handleDarkMode(form.value?.dark_mode)
|
handleDarkMode(form.value?.dark_mode)
|
||||||
handleTransparentMode(form.value?.transparent_background)
|
handleTransparentMode(form.value?.transparent_background)
|
||||||
|
|
@ -135,6 +136,7 @@ onMounted(() => {
|
||||||
})
|
})
|
||||||
|
|
||||||
onBeforeRouteLeave((to, from) => {
|
onBeforeRouteLeave((to, from) => {
|
||||||
|
document.body.classList.remove('public-page')
|
||||||
crisp.showChat()
|
crisp.showChat()
|
||||||
disableDarkMode()
|
disableDarkMode()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -56,3 +56,9 @@ body.dark * {
|
||||||
@apply text-gray-400 dark:text-gray-500;
|
@apply text-gray-400 dark:text-gray-500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.public-page {
|
||||||
|
.fb-feedback-widget-feedback-button-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue