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

Inconsistent capitalization: mountRestartallButton #731

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/docs/ui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Cell Buttons

When Thebe is activated, all `<pre>data-executable="true"</pre>` will be converted to code cells and control buttons are rendered by default.
The buttons are optional, to remove a button, set its respective option to :code:`false`.
The options are :code:`mountRunButton`, :code:`mountRestartButton`, :code:`mountRestartallButton`.
The options are :code:`mountRunButton`, :code:`mountRunAllButton`, :code:`mountRestartButton`, :code:`mountRestartAllButton`.

Keyboard Shortcuts
==================
Expand Down
4 changes: 2 additions & 2 deletions packages/thebe/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ThebeOptions {
mountRunButton?: boolean;
mountRunAllButton?: boolean;
mountRestartButton?: boolean;
mountRestartallButton?: boolean;
mountRestartAllButton?: boolean;
preRenderHook?: (() => void) | null;
// thebe specific options
stripPrompts?: {
Expand Down Expand Up @@ -59,7 +59,7 @@ export const defaultOptions: ThebeOptions = {
mountRunButton: true,
mountRunAllButton: true,
mountRestartButton: true,
mountRestartallButton: true,
mountRestartAllButton: true,
codeMirrorConfig: {},
};

Expand Down
2 changes: 1 addition & 1 deletion packages/thebe/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function buildCellUI(
});
}

if (options.mountRestartallButton) {
if (options.mountRestartAllButton) {
restartAll = buildButton(
controls,
'restartall',
Expand Down
Loading