Skip to content

Notification when an update is available#238

Open
shubham4443 wants to merge 5 commits intospacecloud-io:v0.22.0-oldfrom
shubham4443:update-notification
Open

Notification when an update is available#238
shubham4443 wants to merge 5 commits intospacecloud-io:v0.22.0-oldfrom
shubham4443:update-notification

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 >

{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