mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
This commit adds a new dialog_widget.js file containing most of the code of confirm_dialog.js with some minor changes and changes confirm_dialog to be a wrapper around dialog_widget.js. We pass 'is_confim_dialog' as true in dialog_widget for a confirm_dialog modal. This commit also renames confirm_dialog.hbs and confirm_dialog_heading.hbs to dialog_widget.js, dialog_widget.hbs and dialog_widget_heading.hbs respectively.
6 lines
146 B
JavaScript
6 lines
146 B
JavaScript
import * as dialog_widget from "./dialog_widget";
|
|
|
|
export function launch(conf) {
|
|
dialog_widget.launch({...conf, is_confirm_dialog: true});
|
|
}
|