Spaces:
Running
Running
feat(tools): add icon to go to tool modal
Browse files
src/lib/components/ToolsMenu.svelte
CHANGED
@@ -7,6 +7,7 @@
|
|
7 |
import { isHuggingChat } from "$lib/utils/isHuggingChat";
|
8 |
import IconTool from "./icons/IconTool.svelte";
|
9 |
import CarbonInformation from "~icons/carbon/information";
|
|
|
10 |
|
11 |
export let loading = false;
|
12 |
const settings = useSettingsStore();
|
@@ -129,7 +130,12 @@
|
|
129 |
}}
|
130 |
/>
|
131 |
{/if}
|
132 |
-
<label class="cursor-pointer" for={tool._id}>{tool.displayName}
|
|
|
|
|
|
|
|
|
|
|
133 |
</div>
|
134 |
{/each}
|
135 |
</div>
|
|
|
7 |
import { isHuggingChat } from "$lib/utils/isHuggingChat";
|
8 |
import IconTool from "./icons/IconTool.svelte";
|
9 |
import CarbonInformation from "~icons/carbon/information";
|
10 |
+
import CarbonGlobe from "~icons/carbon/earth-filled";
|
11 |
|
12 |
export let loading = false;
|
13 |
const settings = useSettingsStore();
|
|
|
130 |
}}
|
131 |
/>
|
132 |
{/if}
|
133 |
+
<label class="cursor-pointer" for={tool._id}>{tool.displayName}</label>
|
134 |
+
{#if tool.type === "community"}
|
135 |
+
<a href="{base}/tools/{tool._id}" class="text-purple-600 hover:text-purple-700">
|
136 |
+
<CarbonGlobe />
|
137 |
+
</a>
|
138 |
+
{/if}
|
139 |
</div>
|
140 |
{/each}
|
141 |
</div>
|