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

Corrected link to 'how-to' docs for rstudio notebook warning message #956

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

joncooper65
Copy link
Contributor

When an rstudio notebook has recently been opened, a warning message is displayed when viewing notebooks in a project to alert the user to potentially interrupting the current user's access. This message has a link on the 'more' button pointing to a docs page explaining more about it. But the link was pointing to the wrong how-to doc, which (as you'll see when you review it) is because it was implemented as a change to the SuspendWarning component and only the message had been made dynamic, not the link.

This pull request corrects it.

@@ -179,7 +182,7 @@ const StackCard = ({ classes, stack, openStack, deleteStack, editStack, restartS
/>
</div>
</div>
{NOTEBOOK_TYPE_NAME === typeName && warningMessage && <SuspendWarning message={warningMessage} />}
{NOTEBOOK_TYPE_NAME === typeName && warning.message && <SuspendWarning message={warning.message} docId={warning.docId}/>}
Copy link
Contributor

@jshholland jshholland Apr 4, 2024

Choose a reason for hiding this comment

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

Could use spread syntax to pass the props here:

<SuspendWarning {...warning}/>

@joncooper65 joncooper65 merged commit b3f47b3 into master Apr 4, 2024
5 checks passed
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