Skip to main content
Glama
ActionRunnerDetails.vue1.86 kB
<template> <div class="flex-none w-6 h-6"> <IconButton tooltip="see more" icon="logs-pop" iconHover="logs-pop-square" :selected="modalRef?.isOpen" @click="modalRef.open()" /> <Modal ref="modalRef" size="2xl"> <template #title> <span class="flex items-center" :title="message.join('\n')"> <Icon :name="icon.name" class="pr-2" :class="icon.class" size="lg" :title="`Health: ${health ?? 'unknown'}`" /> <span class="flex flex-col"> <p v-for="singleMessage in message" :key="singleMessage" class="mt-1 ml-1" > {{ singleMessage }} </p> </span> <p v-if="message.length === 0">Health {{ health ?? "unknown" }}</p> </span> </template> </Modal> </div> </template> <script lang="ts" setup> import { ref, computed } from "vue"; import { Icon, IconNames, Modal, IconButton } from "@si/vue-lib/design-system"; import { ResourceHealth } from "@/api/sdf/dal/resource"; const props = defineProps<{ health: ResourceHealth | null; message: string[]; }>(); const icon = computed(() => { switch (props.health) { case ResourceHealth.Ok: return { name: "check2" as IconNames, class: "text-success-500" }; case ResourceHealth.Warning: return { name: "alert-triangle" as IconNames, class: "text-warning-500" }; case ResourceHealth.Error: return { name: "alert-triangle" as IconNames, class: "text-destructive-500 dark:text-destructive-600", }; case ResourceHealth.Unknown: default: return { name: "question-circle" as IconNames, class: "text-neutral-300", }; } }); const modalRef = ref(); </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