File tree Expand file tree Collapse file tree
frontend/src/config/integrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ import { computed, onMounted } from 'vue';
1616import config from ' @/config' ;
1717
1818import { useRoute , useRouter } from ' vue-router' ;
19- import { useAuthStore } from ' @/modules/auth/store/auth.store' ;
20- import { storeToRefs } from ' pinia' ;
2119import { AuthService } from ' @/modules/auth/services/auth.service' ;
2220import useProductTracking from ' @/shared/modules/monitoring/useProductTracking' ;
2321import {
@@ -37,9 +35,6 @@ const props = defineProps<{
3735 grandparentId: string | null ;
3836}>();
3937
40- const authStore = useAuthStore ();
41- const { tenant } = storeToRefs (authStore );
42-
4338const connectUrl = computed <string >(() => {
4439 const redirectUrl = props .grandparentId && props .segmentId
4540 ? ` ${window .location .protocol }//${window .location .host }/integrations/${props .grandparentId }/${props .segmentId }?slack-success=true `
@@ -51,9 +46,7 @@ const connectUrl = computed<string>(() => {
5146 properties: { platform: Platform .SLACK },
5247 });
5348
54- return ` ${config .backendUrl }/slack/${
55- tenant .value .id
56- }/connect?redirectUrl=${redirectUrl }&crowdToken=${AuthService .getToken ()}&segments[]=${props .segmentId } ` ;
49+ return ` ${config .backendUrl }/slack/connect?redirectUrl=${redirectUrl }&crowdToken=${AuthService .getToken ()}&segments[]=${props .segmentId } ` ;
5750});
5851
5952const connect = () => {
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ import { useRouter, useRoute } from 'vue-router';
1919import config from ' @/config' ;
2020
2121import Message from ' @/shared/message/message' ;
22- import { useAuthStore } from ' @/modules/auth/store/auth.store' ;
23- import { storeToRefs } from ' pinia' ;
2422import { AuthService } from ' @/modules/auth/services/auth.service' ;
2523import LfIcon from ' @/ui-kit/icon/Icon.vue' ;
2624import LfButton from ' @/ui-kit/button/Button.vue' ;
@@ -45,12 +43,7 @@ const connectUrl = computed(() => {
4543 ? ` ${window .location .protocol }//${window .location .host }/integrations/${props .grandparentId }/${props .segmentId }?success=true `
4644 : ` ${window .location .protocol }//${window .location .host }${window .location .pathname }?success=true ` ;
4745
48- const authStore = useAuthStore ();
49- const { tenant } = storeToRefs (authStore );
50-
51- return ` ${config .backendUrl }/twitter/${
52- tenant .value .id
53- }/connect?redirectUrl=${redirectUrl }&crowdToken=${AuthService .getToken ()}&segments[]=${
46+ return ` ${config .backendUrl }/twitter/connect?redirectUrl=${redirectUrl }&crowdToken=${AuthService .getToken ()}&segments[]=${
5447 props .segmentId
5548 } ` ;
5649});
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ import { FormSchema } from '@/shared/form/form-schema';
7777import StringField from ' @/shared/fields/string-field' ;
7878import twitter from ' @/config/integrations/twitter/config' ;
7979import LfButton from ' @/ui-kit/button/Button.vue' ;
80- import { useAuthStore } from ' @/modules/auth/store/auth.store' ;
81- import { storeToRefs } from ' pinia' ;
8280import config from ' @/config' ;
8381import { AuthService } from ' @/modules/auth/services/auth.service' ;
8482
@@ -110,12 +108,7 @@ const getConnectUrl = () => {
110108 ? ` ${ window .location .protocol } //${ window .location .host } /integrations/${ props .grandparentId } /${ props .segmentId } ?success=true`
111109 : ` ${ window .location .protocol } //${ window .location .host }${ window .location .pathname } ?success=true` ;
112110
113- const authStore = useAuthStore ();
114- const { tenant } = storeToRefs (authStore);
115-
116- return ` ${ config .backendUrl } /twitter/${
117- tenant .value .id
118- } /connect?redirectUrl=${ redirectUrl} &crowdToken=${ AuthService .getToken ()} &segments[]=${
111+ return ` ${ config .backendUrl } /twitter/connect?redirectUrl=${ redirectUrl} &crowdToken=${ AuthService .getToken ()} &segments[]=${
119112 props .segmentId
120113 } ` ;
121114};
You can’t perform that action at this time.
0 commit comments