Files
zulip/static/js/confirm_dialog.js
Ganesh Pawar 1e8bfa710e dialog_widget: Migrate modal to Micromodal.
Also removed the `danger_submit_button` config option
from the dialog_widget since it isn't needed in the new modals.
2021-10-26 18:20:17 -07:00

13 lines
359 B
JavaScript

import * as dialog_widget from "./dialog_widget";
import {$t_html} from "./i18n";
export function launch(conf) {
dialog_widget.launch({
...conf,
close_on_submit: true,
focus_submit_on_open: true,
html_submit_button: $t_html({defaultMessage: "Confirm"}),
// Used to control button colors in the template.
});
}