Skip to content

Commit 109417f

Browse files
authored
fix: bot suggestions button (#3558)
1 parent 0bf008a commit 109417f

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

frontend/src/modules/member/components/suggestions/member-bot-suggestion-dropdown.vue

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@
1010
</lf-button>
1111
</template>
1212

13-
<lf-dropdown-item @click="viewProfile(props.suggestion)">
14-
<lf-icon name="eye" />View profile
15-
</lf-dropdown-item>
13+
<router-link
14+
:to="{
15+
name: 'memberView',
16+
params: { id: props.suggestion.memberId },
17+
query: { projectGroup: selectedProjectGroup?.id },
18+
}"
19+
target="_blank"
20+
>
21+
<lf-dropdown-item>
22+
<lf-icon name="eye" />View profile
23+
</lf-dropdown-item>
24+
</router-link>
1625

1726
<lf-dropdown-item @click="ignore(props.suggestion)">
1827
<lf-icon name="circle-xmark" />Ignore suggestion
@@ -29,7 +38,6 @@ import LfIcon from '@/ui-kit/icon/Icon.vue';
2938
import useProductTracking from '@/shared/modules/monitoring/useProductTracking';
3039
import { useLfSegmentsStore } from '@/modules/lf/segments/store';
3140
import { storeToRefs } from 'pinia';
32-
import { useRouter } from 'vue-router';
3341
3442
const props = defineProps<{
3543
suggestion: any,
@@ -39,15 +47,6 @@ const emit = defineEmits<{(e: 'reload'): void; (e: 'ignoreSuggestion', suggestio
3947
4048
const { trackEvent } = useProductTracking();
4149
const { selectedProjectGroup } = storeToRefs(useLfSegmentsStore());
42-
const router = useRouter();
43-
44-
const viewProfile = (suggestion: any) => {
45-
router.push({
46-
name: 'memberView',
47-
params: { id: suggestion.memberId },
48-
query: { projectGroup: selectedProjectGroup.value?.id },
49-
});
50-
};
5150
5251
const ignore = (suggestion: any) => {
5352
trackEvent({

0 commit comments

Comments
 (0)