Skip to content

Commit

Permalink
Inconsistent capitalization: mountRestartallButton (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
kno10 authored Mar 15, 2024
1 parent 6e49692 commit 7eda857
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7eda857

Please sign in to comment.