component setup

This commit is contained in:
Michael Kret 2024-10-30 12:29:28 +02:00 committed by Ivan Atanasov
parent 197ef5c27b
commit db51b3a5f4
No known key found for this signature in database
2 changed files with 30 additions and 0 deletions

View file

@ -267,6 +267,7 @@ function moveResource() {
</div>
<template #append>
<div :class="$style.cardActions" @click.stop>
<WorkflowStatistic />
<ProjectCardBadge
:resource="data"
:resource-type="ResourceType.Workflow"

View file

@ -0,0 +1,29 @@
<script setup lang="ts"></script>
<template>
<n8n-tooltip placement="top">
<div class="statusText">
<n8n-icon icon="play-circle" color="info" />
<n8n-text color="text-base" size="small" bold> 40 | </n8n-text>
<n8n-icon icon="check-circle" color="success" />
<n8n-text color="text-base" size="small" bold> 26 | </n8n-text>
<n8n-icon icon="exclamation-triangle" color="danger" />
<n8n-text color="text-base" size="small" bold> 14 </n8n-text>
</div>
<template #content> statistic details </template>
</n8n-tooltip>
</template>
<style lang="scss" scoped>
.statusText {
padding-right: var(--spacing-s);
box-sizing: border-box;
display: inline-block;
text-align: right;
}
.icon {
font-size: var(--font-size-2xs);
width: 12px;
}
</style>