diff --git a/static/js/dialog_widget.js b/static/js/dialog_widget.js index 41ea56ee93..5aa12f83b8 100644 --- a/static/js/dialog_widget.js +++ b/static/js/dialog_widget.js @@ -79,6 +79,7 @@ export function launch(conf) { // * focus_submit_on_open: Whether to focus submit button on open. // * help_link: A help link in the heading area. // * id: Custom id to the container element to modify styles. + // * single_footer_button: If true, don't include the "Cancel" button. for (const f of mandatory_fields) { if (conf[f] === undefined) { @@ -99,6 +100,7 @@ export function launch(conf) { html_submit_button, html_body: conf.html_body, id: conf.id, + single_footer_button: conf.single_footer_button, }); const dialog = $(html); $("body").append(dialog); diff --git a/static/templates/dialog_widget.hbs b/static/templates/dialog_widget.hbs index a848c945bc..876038426d 100644 --- a/static/templates/dialog_widget.hbs +++ b/static/templates/dialog_widget.hbs @@ -15,8 +15,10 @@ {{{ html_body }}}