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

Notification when an update is available #238

Open
wants to merge 5 commits into
base: v0.22.0-old
Choose a base branch
from

Conversation

shubham4443
Copy link
Contributor

Notification in the sidenav when there is a spacecloud update available.

@Saif-Ali-Kamal
Copy link
Contributor

  • change base branch to v0.22.0
  • refer design for showing current version of sc and ui

@shubham4443 shubham4443 changed the base branch from master to v0.22.0 February 26, 2021 13:32
@shubham4443
Copy link
Contributor Author

  • change base branch to v0.22.0
  • refer design for showing current version of sc and ui

Are you sure the design is correct? The UI version seems to overlap the upgrade box when there is an update available.

@Saif-Ali-Kamal
Copy link
Contributor

  • It is still not as per design

@@ -120,7 +120,7 @@ const Sidenav = (props) => {
</Link>
</div>
{isUpdateAvailable ? <React.Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

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

no need for ternary operator
{isUpdateAvailable && ...updateDiv}
< div >
< popover >...ui version</ popover >
...sc version
< /div >

@@ -120,7 +120,7 @@ const Sidenav = (props) => {
</Link>
</div>
{isUpdateAvailable ? <React.Fragment>
<div style={{ backgroundColor: "#D2E0FF", padding: 16}}>
<div style={{ backgroundColor: "#D2E0FF", padding: 16 }}>
Upgrade to v{scLatestVersion} <Button type="primary" ghost style={{ marginLeft: 9 }}>Update</Button>
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens onClick?

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.

2 participants