-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add a link in the UI for WorkflowTemplate. Fixes #4760 #8208
Conversation
Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
I can't figure out why the tests are failing. Can anybody please help me? |
Run “yarn lint” |
Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
ui/src/app/cron-workflows/components/cron-workflow-details/cron-workflow-details.tsx
Show resolved
Hide resolved
const url: string = clusterScope ? `/cluster-workflow-templates/${templateName}` : `/workflow-templates/${cronWorkflow.metadata.namespace}/${templateName}`; | ||
|
||
const templateLink: Link = { | ||
name: 'Workflow Template Link', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to “Open Workflow Template” and use the same icon as left-hand-nav does.
const url: string = clusterScope ? `/cluster-workflow-templates/${templateName}` : `/workflow-templates/${workflow.metadata.namespace}/${templateName}`; | ||
|
||
const templateLink: Link = { | ||
name: 'Workflow Template Link', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to “Open Workflow Template” and use the same icon as left-hand-nav does.
Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
thank you for changes - please can I ask you attach updated screenshots? this shows it works |
Signed-off-by: Shubham Nazare shubham4443@gmail.com
Fixes #4760
If a Workflow or CronWorkflow uses a WorkflowTemplate or ClusterWorkflowTemplate as workflowTemplateRef, a link is provided to redirect to that template.
For WorkflowTemplate kind -
For ClusterWorkflowTemplate kind -