Skip to main content
Glama
ActionWidget.vue1.56 kB
<template> <div class="cursor-pointer" :class=" clsx( 'flex flex-row items-center gap-xs p-2xs border-x border-b', themeClasses('border-neutral-400', 'border-neutral-600'), ) " @click="clickHandler" > <Toggle :selected="!!props.actionId" class="flex-none" /> <StatusIndicatorIcon type="action" :status="actionPrototypeView.kind" tone="inherit" class="flex-none" /> <div class="font-bold leading-normal text-sm"> {{ actionPrototypeView.displayName || actionPrototypeView.name }} </div> <Icon v-if="actionBifrosting" name="loader" class="ml-auto" size="sm" /> </div> </template> <script setup lang="ts"> import * as _ from "lodash-es"; import clsx from "clsx"; import { Icon, themeClasses, Toggle } from "@si/vue-lib/design-system"; import StatusIndicatorIcon from "@/components/StatusIndicatorIcon.vue"; import { ActionId } from "@/api/sdf/dal/action"; import { ActionPrototypeView, BifrostComponent, ComponentInList, } from "@/workers/types/entity_kind_types"; import { useComponentActions } from "./logic_composables/component_actions"; const props = defineProps<{ component: BifrostComponent | ComponentInList; actionPrototypeView: ActionPrototypeView; actionId?: ActionId; }>(); const { toggleActionHandler } = useComponentActions(() => props.component); const { handleToggle, bifrosting: actionBifrosting } = toggleActionHandler( props.actionPrototypeView, () => props.actionId, ); const clickHandler = handleToggle; </script>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server