diff --git a/notebook/static/notebook/js/actions.js b/notebook/static/notebook/js/actions.js index b01a72d8c..dd0325569 100644 --- a/notebook/static/notebook/js/actions.js +++ b/notebook/static/notebook/js/actions.js @@ -117,6 +117,7 @@ define([ } }, 'confirm-restart-kernel-and-run-all-cells': { + icon: 'fa-forward', cmd: i18n.msg._('confirm restart kernel and run all cells'), help: i18n.msg._('restart the kernel, then re-run the whole notebook (with dialog)'), handler: function (env) { diff --git a/notebook/static/notebook/js/maintoolbar.js b/notebook/static/notebook/js/maintoolbar.js index 78bad6e0b..2207be4a2 100644 --- a/notebook/static/notebook/js/maintoolbar.js +++ b/notebook/static/notebook/js/maintoolbar.js @@ -53,7 +53,8 @@ define([ [ [new toolbar.Button('jupyter-notebook:run-cell-and-select-next', {label: i18n.msg._('Run')}), 'jupyter-notebook:interrupt-kernel', - 'jupyter-notebook:confirm-restart-kernel' + 'jupyter-notebook:confirm-restart-kernel', + 'jupyter-notebook:confirm-restart-kernel-and-run-all-cells' ], 'run_int'], [''], @@ -61,7 +62,7 @@ define([ ]; this.construct(grps); }; - + MainToolBar.prototype._pseudo_actions = {}; // add a cell type drop down to the maintoolbar.