Skip to content

Commit

Permalink
BugFix: Add information about task inputs (#8295)
Browse files Browse the repository at this point in the history
Co-authored-by: Marichka Offen <[email protected]>
Co-authored-by: Marichka Offen <[email protected]>
  • Loading branch information
3 people authored Mar 1, 2023
1 parent c3dd617 commit 28b1fc9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/pages/TaskRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<TaskRunLogs :task-run="taskRun" />
</template>

<template v-if="taskRun" #task-inputs-heading>
Task inputs
<ExtraInfoModal title="Task Inputs">
{{ localization.info.taskInput }}
</ExtraInfoModal>
</template>
<template #task-inputs>
<CopyableWrapper v-if="deployment" :text-to-copy="parameters">
<p-code-highlight lang="json" :text="parameters" class="task-run__inputs" />
Expand All @@ -27,7 +33,7 @@

<script lang="ts" setup>
import { media } from '@prefecthq/prefect-design'
import { PageHeadingTaskRun, TaskRunLogs, TaskRunDetails, CopyableWrapper, useFavicon, useWorkspaceApi } from '@prefecthq/prefect-ui-library'
import { PageHeadingTaskRun, TaskRunLogs, TaskRunDetails, CopyableWrapper, useFavicon, useWorkspaceApi, localization, ExtraInfoModal } from '@prefecthq/prefect-ui-library'
import { useRouteParam, useSubscriptionWithDependencies } from '@prefecthq/vue-compositions'
import { computed } from 'vue'
import { useRouter } from 'vue-router'
Expand Down

0 comments on commit 28b1fc9

Please sign in to comment.