-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add logout button #6087
Add logout button #6087
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
The limitation seems to be with this line here. Are there any plans to make |
Thanks @Madhu94. We had some discussion of button placement style and location in #4414, and decided that it was better to just have it in the "File" menu with other application-level commands. I think the best solution would be to do the same here, so we sidestep the design issue of where to put the button. So I suggest doing the following:
What do you think? |
Thanks for getting back @ian-r-rose. A command seems like a great idea, will change this implementation. The Logout/Shutdown distinction sounds good too. |
This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there: |
@Madhu94 - just checking in on this. How are things going? I was hoping to review it and get it in soon. |
Added wip to label to help categorize. |
0f04fc3
to
ba99129
Compare
I was offline for a few weeks, apologies for the delay! I changed it to a command, please review |
execute: () => { | ||
return showDialog({ | ||
title: 'Quit confirmation', | ||
title: 'Shutdown confirmation', | ||
body: 'Please confirm you want to quit JupyterLab.', |
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.
We should also change this text and warnButton below from "quit"
@@ -383,6 +388,14 @@ export function createFileMenu( | |||
} | |||
}); | |||
|
|||
commands.addCommand(CommandIDs.logout, { | |||
label: 'Logout', | |||
caption: 'Logout of JupyterLab', |
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.
"Log out of JupyterLab"
caption: 'Quit JupyterLab', | ||
commands.addCommand(CommandIDs.shutdown, { | ||
label: 'Shutdown', | ||
caption: 'Shutdown JupyterLab', |
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.
"Shut down JupyterLab" (three words instead of two)? Does that read better?
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.
This looks great. Thanks @Madhu94, and thanks for your patience!
Quit to Shutdown
9a9f054
to
ba698ff
Compare
I'll ping sooner, after I make the changes next time. :) Please take a look at the reworded captions |
@@ -383,6 +391,14 @@ export function createFileMenu( | |||
} | |||
}); | |||
|
|||
commands.addCommand(CommandIDs.logout, { | |||
label: 'Logout', | |||
caption: 'Log out of JupyterLab', |
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.
title: 'Logout confirmation',
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.
I don't have a confirmation dialog for logout, should I add one? The classic notebook didn't
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.
Ah, that's the difference, we don't need a title because we don't have a dialog? Okay, never mind. Let's go with the classic behavior for now, unless there is a strong reason to change.
Thanks. We don't get notifications when changes are pushed, only when comments are added. |
Looks good, and looks like the windows js tests failure is unrelated. Thanks again! |
Thanks for being patient!
…On Thu, May 2, 2019, 11:54 AM Jason Grout ***@***.***> wrote:
Merged #6087 <#6087> into
master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6087 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACEZEDGZ3RSFUASPOIVU6LTPTKCJ7ANCNFSM4G45HMXQ>
.
|
Thanks for your work @Madhu94! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related discussion. |
Fixes #5966
Is there an easy way to change the order a phosphor widget is inserted ? I've not been able to find a trivial way to add it to the end of the shell's top area - so it shows up at top left of the screen.