Merge pull request 'fix(chatbot): hotfix to actually hide chatbot from users without chatbot perms.' (#53) from dev/nicolas/staging-prep into main
Reviewed-on: Targo/targo_frontend#53
This commit is contained in:
commit
e86dff3026
|
|
@ -10,9 +10,11 @@
|
|||
import { onMounted, watch, ref } from 'vue';
|
||||
import { RouterView } from 'vue-router';
|
||||
import { useUiStore } from 'src/stores/ui-store';
|
||||
import { useAuthStore } from 'src/stores/auth-store';
|
||||
|
||||
|
||||
const ui_store = useUiStore();
|
||||
const auth_store = useAuthStore();
|
||||
const user_preferences = ref(ui_store.user_preferences);
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
@ -27,7 +29,7 @@
|
|||
return
|
||||
}
|
||||
await ui_store.getUserPreferences();
|
||||
}, {deep: true});
|
||||
}, { deep: true });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -36,7 +38,7 @@
|
|||
|
||||
<LeftDrawer />
|
||||
|
||||
<ChatbotDrawer />
|
||||
<ChatbotDrawer v-if="auth_store.user?.user_module_access.includes('chatbot')"/>
|
||||
|
||||
<q-page-container>
|
||||
<router-view />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user