@@ -58,7 +57,7 @@ import AppOnboardIntegrationItem from '@/modules/onboard/components/onboard-inte
import { minValue } from '@vuelidate/validators';
import useVuelidate from '@vuelidate/core';
-const emit = defineEmits(['allowRedirect', 'inviteColleagues']);
+const emit = defineEmits(['allowRedirect']);
const props = defineProps({
modelValue: {
type: Object,
diff --git a/frontend/src/modules/onboard/config/steps/invite-colleagues.ts b/frontend/src/modules/onboard/config/steps/invite-colleagues.ts
index 3ce1d0ff96..9b69e6760b 100644
--- a/frontend/src/modules/onboard/config/steps/invite-colleagues.ts
+++ b/frontend/src/modules/onboard/config/steps/invite-colleagues.ts
@@ -10,13 +10,6 @@ const inviteColleagues: OnboardStepConfig = {
name: 'Invite colleagues',
component: AppOnboardInviteColleaguesStep,
cta: 'Finish setup',
- ctaTooltip: ({ activeIntegrations }) => {
- if (!activeIntegrations) {
- return 'To proceed, go back and click on the Sync data step to connect at least 1 integration';
- }
-
- return null;
- },
textColor: (currentStep: number) => ({
'text-gray-400': currentStep < 3,
'text-brand-400': currentStep > 3,
diff --git a/frontend/src/modules/onboard/config/steps/sync-data.ts b/frontend/src/modules/onboard/config/steps/sync-data.ts
index 44a552ccd2..3dd21e4876 100644
--- a/frontend/src/modules/onboard/config/steps/sync-data.ts
+++ b/frontend/src/modules/onboard/config/steps/sync-data.ts
@@ -5,7 +5,7 @@ const syncData: OnboardStepConfig = {
name: 'Sync data',
component: AppOnboardSyncDataStep,
cta: 'Continue',
- ctaTooltip: () => 'Connect at least 1 integration to proceed',
+ ctaTooltip: 'Connect at least 1 integration to proceed',
submitActionInfo: 'Although you have integrations getting set up, you can proceed with the workspace setup.',
sideInfo: [
{
diff --git a/frontend/src/modules/onboard/pages/onboard-page.vue b/frontend/src/modules/onboard/pages/onboard-page.vue
index 84972be7ff..fc6bc38c09 100644
--- a/frontend/src/modules/onboard/pages/onboard-page.vue
+++ b/frontend/src/modules/onboard/pages/onboard-page.vue
@@ -54,7 +54,6 @@
:is="stepConfig.component"
v-model="form"
@allow-redirect="onConnect"
- @invite-colleagues="onInviteColleagues"
/>
@@ -75,8 +74,8 @@
{
}
});
+watch(form, (updatedForm) => {
+ if (currentStep.value === 3) {
+ const parsedIntegrations = updatedForm.invitedUsers.map((u) => (u.emails.some((e) => !e) ? ({
+ ...u,
+ emails: [],
+ }) : u));
+
+ form.invitedUsers = parsedIntegrations;
+ }
+}, {
+ deep: true,
+});
+
const $v = useVuelidate({}, form);
// Steps Submit action
@@ -210,10 +222,6 @@ const onStepClick = (index: number) => {
const onConnect = (val: boolean) => {
allowRedirect.value = val;
};
-
-const onInviteColleagues = () => {
- currentStep.value = 3;
-};