Skip to content
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(ui): Replace 3 buttons with drop-down #4648

Merged
merged 1 commit into from
Dec 5, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Dec 5, 2020

This bugged me and was easy to fix. I tidied up the link button too.

Screenshot 2020-12-04 at 16 31 27
Screenshot 2020-12-04 at 16 31 43

https://share.getcloudapp.com/E0u4zl29

Signed-off-by: Alex Collins alex_collins@intuit.com

Checklist:

Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec requested a review from simster7 December 5, 2020 00:45
@alexec alexec marked this pull request as ready for review December 5, 2020 00:45
.replace(/\${metadata\.name}/g, props.node.id)
.replace(/\${status\.startedAt}/g, props.node.startedAt)
.replace(/\${status\.finishedAt}/g, props.node.finishedAt)}>
<button
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not format correctly with an icon in it, so changed to a

return (
<div className='white-box'>
<div className='white-box__details'>{<AttributeRows attributes={attributes} />}</div>
<div>
<button className='argo-button argo-button--base-o' onClick={() => props.onShowYaml && props.onShowYaml(props.node.id)}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to make them all grey buttons because the -o style button does not have a background fill, so I could not use it for a drop-down item

@alexec alexec merged commit c4d986a into argoproj:master Dec 5, 2020
@alexec alexec deleted the ui-logs branch December 5, 2020 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants