Files
zulip/static/js/confirm_dialog.js
sahil839 dff374a48b frontend: Remove html_submit_button paramter passed to dialog_widget.
We used html_submit_button to pass text to be present in the modal
submit button. There are only two possible options as of now -
"Confirm" and "Save changes" and the correct one can be determined
using is_confirm_modal parameter. So, we remove this paramter for
now and we can add it later if we have more type of modals using
this widget.
2021-07-14 13:02:25 -07:00

11 lines
273 B
JavaScript

import {$t_html} from "./i18n";
import * as dialog_widget from "./dialog_widget";
export function launch(conf) {
dialog_widget.launch(
{...conf,
html_submit_button: $t_html({defaultMessage: "Confirm"}),
is_confirm_dialog: true,
});
}