This commit is contained in:
Timothy Jaeryang Baek
2026-03-15 17:08:24 -05:00
parent a43d98965b
commit 1eef5b4f6a
+19 -13
View File
@@ -449,20 +449,26 @@
<div class=" text-xs text-gray-500">{$i18n.t('Type')}</div> <div class=" text-xs text-gray-500">{$i18n.t('Type')}</div>
<div class=""> <div class="">
<button {#if !direct}
on:click={() => { <button
type = ['', 'openapi'].includes(type) ? 'mcp' : 'openapi'; on:click={() => {
}} type = ['', 'openapi'].includes(type) ? 'mcp' : 'openapi';
type="button" }}
class=" text-xs text-gray-700 dark:text-gray-300" type="button"
> class=" text-xs text-gray-700 dark:text-gray-300"
{#if ['', 'openapi'].includes(type)} >
{#if ['', 'openapi'].includes(type)}
{$i18n.t('OpenAPI')}
{:else if type === 'mcp'}
{$i18n.t('MCP')}
<span class="text-gray-500">{$i18n.t('Streamable HTTP')}</span>
{/if}
</button>
{:else}
<div class="text-xs text-gray-700 dark:text-gray-300">
{$i18n.t('OpenAPI')} {$i18n.t('OpenAPI')}
{:else if type === 'mcp'} </div>
{$i18n.t('MCP')} {/if}
<span class="text-gray-500">{$i18n.t('Streamable HTTP')}</span>
{/if}
</button>
</div> </div>
</div> </div>
</div> </div>