From 2b321eff736ae819d6c53b639d643f41f1e92b93 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:14:25 +0100 Subject: [PATCH] use short tool id as help forum tag --- client/src/components/Tool/ToolHelpForum.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/Tool/ToolHelpForum.vue b/client/src/components/Tool/ToolHelpForum.vue index da592eba603..a3b14d538e2 100644 --- a/client/src/components/Tool/ToolHelpForum.vue +++ b/client/src/components/Tool/ToolHelpForum.vue @@ -5,6 +5,7 @@ import { computed, onMounted, ref } from "vue"; import { fetcher } from "@/api/schema"; import { useConfigStore } from "@/stores/configurationStore"; +import { getShortToolId } from "@/utils/tool"; import { createTopicUrl, type HelpForumPost, type HelpForumTopic, useHelpURLs } from "./helpForumUrls"; @@ -26,7 +27,8 @@ const helpAvailable = computed(() => topics.value.length > 0); const root = ref(null); -const query = computed(() => `tags:${props.toolId}+${toolHelpTag} status:solved`); +const shortToolId = computed(() => getShortToolId(props.toolId)); +const query = computed(() => `tags:${shortToolId.value}+${toolHelpTag} status:solved`); onMounted(async () => { const response = await helpFetcher({ query: query.value }); @@ -49,7 +51,7 @@ function blurbForTopic(topicId: number): string { const { createNewTopicUrl, searchTopicUrl } = useHelpURLs({ title: computed(() => props.toolName), - tags: computed(() => [props.toolId, toolHelpTag]), + tags: computed(() => [shortToolId.value, toolHelpTag]), query, });