-
+
{{ title }}
+
+ {{ t('GENERAL.BETA') }}
+
{{ description }}
diff --git a/app/javascript/dashboard/routes/dashboard/settings/agents/EditAgent.vue b/app/javascript/dashboard/routes/dashboard/settings/agents/EditAgent.vue
index 083eb2c0d..40b510c48 100644
--- a/app/javascript/dashboard/routes/dashboard/settings/agents/EditAgent.vue
+++ b/app/javascript/dashboard/routes/dashboard/settings/agents/EditAgent.vue
@@ -30,6 +30,10 @@ const props = defineProps({
type: String,
default: '',
},
+ provider: {
+ type: String,
+ default: '',
+ },
customRoleId: {
type: Number,
default: null,
@@ -203,6 +207,7 @@ const resetPassword = async () => {
-
+
{{ label }}
diff --git a/app/javascript/v3/components/GoogleOauth/Button.spec.js b/app/javascript/v3/components/GoogleOauth/Button.spec.js
index 78677c3cc..dbc2aaf90 100644
--- a/app/javascript/v3/components/GoogleOauth/Button.spec.js
+++ b/app/javascript/v3/components/GoogleOauth/Button.spec.js
@@ -1,9 +1,8 @@
import { shallowMount } from '@vue/test-utils';
import GoogleOAuthButton from './Button.vue';
-function getWrapper(showSeparator) {
+function getWrapper() {
return shallowMount(GoogleOAuthButton, {
- propsData: { showSeparator: showSeparator },
mocks: { $t: text => text },
});
}
@@ -20,16 +19,6 @@ describe('GoogleOAuthButton.vue', () => {
window.chatwootConfig = {};
});
- it('renders the OR separator if showSeparator is true', () => {
- const wrapper = getWrapper(true);
- expect(wrapper.findComponent({ ref: 'divider' }).exists()).toBe(true);
- });
-
- it('does not render the OR separator if showSeparator is false', () => {
- const wrapper = getWrapper(false);
- expect(wrapper.findComponent({ ref: 'divider' }).exists()).toBe(false);
- });
-
it('generates the correct Google Auth URL', () => {
const wrapper = getWrapper();
const googleAuthUrl = new URL(wrapper.vm.getGoogleAuthUrl());
@@ -42,7 +31,5 @@ describe('GoogleOAuthButton.vue', () => {
);
expect(params.get('response_type')).toBe('code');
expect(params.get('scope')).toBe('email profile');
-
- expect(wrapper.findComponent({ ref: 'divider' }).exists()).toBe(true);
});
});
diff --git a/app/javascript/v3/components/GoogleOauth/Button.vue b/app/javascript/v3/components/GoogleOauth/Button.vue
index 475ad4841..c6214e9c3 100644
--- a/app/javascript/v3/components/GoogleOauth/Button.vue
+++ b/app/javascript/v3/components/GoogleOauth/Button.vue
@@ -1,16 +1,5 @@
@@ -70,7 +90,6 @@ onMounted(() => {
}"
>