Skip to content

Commit

Permalink
Display config name and description in workflow node (#4980)
Browse files Browse the repository at this point in the history
Co-authored-by: Brittany Kondo <[email protected]>
  • Loading branch information
brittanykondo and Brittany Kondo authored Oct 2, 2024
1 parent 62fc195 commit af1fb66
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<template>
<section>
<tera-operator-placeholder :node="node" />
<div v-if="!isEmpty(node.state.transientModelConfig.id)" class="pl-2 pr-2 pb-3">
<h6 class="pb-2">{{ node.state.transientModelConfig.name }}</h6>
<p>{{ node.state.transientModelConfig.description }}</p>
</div>
<tera-operator-placeholder v-else :node="node" />

<tera-progress-spinner is-centered :font-size="2" v-if="isLoading" />
<Button
:label="isModelInputConnected ? 'Open' : 'Attach a model'"
Expand All @@ -13,7 +18,7 @@
</template>

<script setup lang="ts">
import { cloneDeep, omit } from 'lodash';
import { cloneDeep, omit, isEmpty } from 'lodash';
import { computed, watch, ref } from 'vue';
import { WorkflowNode, WorkflowPortStatus } from '@/types/workflow';
import Button from 'primevue/button';
Expand Down Expand Up @@ -120,3 +125,8 @@ watch(
}
);
</script>
<style scoped>
h6 + p {
color: var(--text-color-subdued);
}
</style>

0 comments on commit af1fb66

Please sign in to comment.