mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
fix: Disable AI Assist CTA if not required (#8375)
- Show CTAs only on production
This commit is contained in:
@@ -61,6 +61,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
currentChat: 'getSelectedChat',
|
currentChat: 'getSelectedChat',
|
||||||
|
isAChatwootInstance: 'globalConfig/isAChatwootInstance',
|
||||||
}),
|
}),
|
||||||
isAICTAModalDismissed() {
|
isAICTAModalDismissed() {
|
||||||
return this.uiSettings.is_open_ai_cta_modal_dismissed;
|
return this.uiSettings.is_open_ai_cta_modal_dismissed;
|
||||||
@@ -70,7 +71,8 @@ export default {
|
|||||||
return (
|
return (
|
||||||
this.isAdmin &&
|
this.isAdmin &&
|
||||||
!this.isAIIntegrationEnabled &&
|
!this.isAIIntegrationEnabled &&
|
||||||
!this.isAICTAModalDismissed
|
!this.isAICTAModalDismissed &&
|
||||||
|
this.isAChatwootInstance
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
// Display a AI CTA button for agents and other admins who have not yet opened the AI assistance modal.
|
// Display a AI CTA button for agents and other admins who have not yet opened the AI assistance modal.
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export const getters = {
|
|||||||
get: $state => $state,
|
get: $state => $state,
|
||||||
isOnChatwootCloud: $state => $state.deploymentEnv === 'cloud',
|
isOnChatwootCloud: $state => $state.deploymentEnv === 'cloud',
|
||||||
isACustomBrandedInstance: $state => $state.installationName !== 'Chatwoot',
|
isACustomBrandedInstance: $state => $state.installationName !== 'Chatwoot',
|
||||||
|
isAChatwootInstance: $state => $state.installationName === 'Chatwoot',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const actions = {};
|
export const actions = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user