Skip to content

Commit

Permalink
Replace shutdown with shut down a few more places where it was used a…
Browse files Browse the repository at this point in the history
…s a verb.
  • Loading branch information
jasongrout committed May 2, 2019
1 parent 75b9f3c commit 8d8cbb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/console-extension/src/index.ts
Expand Up @@ -509,7 +509,7 @@ async function activateConsole(
name: 'Console',
closeAndCleanup: (current: ConsolePanel) => {
return showDialog({
title: 'Shut Down the console?',
title: 'Shut down the console?',
body: `Are you sure you want to close "${current.title.label}"?`,
buttons: [Dialog.cancelButton(), Dialog.warnButton()]
}).then(result => {
Expand Down
9 changes: 4 additions & 5 deletions packages/mainmenu-extension/src/index.ts
Expand Up @@ -211,7 +211,6 @@ const plugin: JupyterFrontEndPlugin<IMainMenu> = {
command: CommandIDs.logout,
category: 'Main Area'
});

}

palette.addItem({
Expand Down Expand Up @@ -511,23 +510,23 @@ export function createKernelMenu(app: JupyterFrontEnd, menu: KernelMenu): void {
});

commands.addCommand(CommandIDs.shutdownKernel, {
label: 'Shutdown Kernel',
label: 'Shut Down Kernel',
isEnabled: Private.delegateEnabled(app, menu.kernelUsers, 'shutdownKernel'),
execute: Private.delegateExecute(app, menu.kernelUsers, 'shutdownKernel')
});

commands.addCommand(CommandIDs.shutdownAllKernels, {
label: 'Shutdown All Kernels…',
label: 'Shut Down All Kernels…',
isEnabled: () => {
return app.serviceManager.sessions.running().next() !== undefined;
},
execute: () => {
return showDialog({
title: 'Shutdown All?',
title: 'Shut Down All?',
body: 'Shut down all kernels?',
buttons: [
Dialog.cancelButton(),
Dialog.warnButton({ label: 'SHUTDOWN' })
Dialog.warnButton({ label: 'SHUT DOWN ALL' })
]
}).then(result => {
if (result.button.accept) {
Expand Down
6 changes: 3 additions & 3 deletions packages/notebook-extension/src/index.ts
Expand Up @@ -1089,7 +1089,7 @@ function addCommands(
isEnabled
});
commands.addCommand(CommandIDs.closeAndShutdown, {
label: 'Close and Shutdown',
label: 'Close and Shut Down',
execute: args => {
const current = getCurrent(args);

Expand All @@ -1100,7 +1100,7 @@ function addCommands(
const fileName = current.title.label;

return showDialog({
title: 'Shutdown the notebook?',
title: 'Shut down the notebook?',
body: `Are you sure you want to close "${fileName}"?`,
buttons: [Dialog.cancelButton(), Dialog.warnButton()]
}).then(result => {
Expand Down Expand Up @@ -1927,7 +1927,7 @@ function populateMenus(
closeAndCleanup: (current: NotebookPanel) => {
const fileName = current.title.label;
return showDialog({
title: 'Shutdown the notebook?',
title: 'Shut down the notebook?',
body: `Are you sure you want to close "${fileName}"?`,
buttons: [Dialog.cancelButton(), Dialog.warnButton()]
}).then(result => {
Expand Down
4 changes: 2 additions & 2 deletions packages/running/src/index.tsx
Expand Up @@ -173,7 +173,7 @@ function Item<M>(props: SessionProps<M> & { model: M }) {
className={`${SHUTDOWN_BUTTON_CLASS} jp-mod-styled`}
onClick={() => props.shutdown(model)}
>
SHUTDOWN
SHUT DOWN
</button>
</li>
);
Expand Down Expand Up @@ -221,7 +221,7 @@ function Section<M>(props: SessionProps<M>) {
title: `Shut Down All ${props.name} Sessions?`,
buttons: [
Dialog.cancelButton(),
Dialog.warnButton({ label: 'SHUT DOWN' })
Dialog.warnButton({ label: 'SHUT DOWN ALL' })
]
}).then(result => {
if (result.button.accept) {
Expand Down

0 comments on commit 8d8cbb2

Please sign in to comment.