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
Modify logout and control panel redirect for project notebooks #846
Modify logout and control panel redirect for project notebooks #846
Conversation
1105f45
to
49d3cbb
Compare
frontend/src/pages/projects/screens/detail/useCheckLogoutParams.ts
Outdated
Show resolved
Hide resolved
frontend/src/pages/projects/screens/detail/useCheckLogoutParams.ts
Outdated
Show resolved
Hide resolved
7bf29cb
to
e85fee1
Compare
frontend/src/pages/projects/screens/detail/useCheckLogoutParams.ts
Outdated
Show resolved
Hide resolved
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.
Baring the one tiny text change, this is good to merge.
/approve
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
…atahub-io#846) * Modify logout and control panel redirect for project notebooks * address comments * use hook provided by react-router-dom instead of custom hook * remove comment * add notebook name in the success prompt * modify hook * handle no notebook situation * reduce hook running time * get the correct notebook name * update prompt text
Description
Closes #808
There is no way to change the text Hub Control Panel, it's hardcoded in JupyterLab https://github.com/jupyterlab/jupyterlab/blob/master/packages/hub-extension/src/index.ts#L74-L80
The logout success prompt will be triggered twice, have no idea why, left a comment and waiting for reviews.
How Has This Been Tested?
Create a notebook in DSG, login to the notebook, and try to click the logout and hub control panel button.
Merge criteria: