mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 00:03:07 +00:00
always show parent job in job header (#7805)
* Allways show parent job when it exists * Always show schedule path
This commit is contained in:
@@ -502,6 +502,14 @@ export function getRelevantFields(job: Job): FieldConfig[] {
|
||||
if (fieldName === 'permissioned_as') {
|
||||
return shouldShowPermissionedAs
|
||||
}
|
||||
if (fieldName === 'parent_job') {
|
||||
// Always show parent_job when it exists, regardless of category configuration
|
||||
return job.parent_job !== null && job.parent_job !== undefined
|
||||
}
|
||||
if (fieldName === 'schedule_path') {
|
||||
// Always show schedule_path when it exists, regardless of category configuration
|
||||
return job.schedule_path !== null && job.schedule_path !== undefined
|
||||
}
|
||||
return fieldsPresence[fieldName]
|
||||
})
|
||||
.map((fieldName) => fieldConfigs[fieldName])
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
<span class="whitespace-nowrap" title={fullValue}>
|
||||
<button
|
||||
onclick={() => scheduleEditor?.openEdit?.(job.schedule_path ?? '', job.job_kind == 'flow')}
|
||||
class="flex items-center gap-1"
|
||||
class="flex items-center gap-1 font-normal"
|
||||
>
|
||||
{displayValue}
|
||||
<ExternalLink size={12} class="flex-shrink-0" />
|
||||
|
||||
Reference in New Issue
Block a user