2021-07-05 19:15:37 +02:00
|
|
|
import * as dialog_widget from "./dialog_widget";
|
2021-07-14 22:07:03 +02:00
|
|
|
import {$t_html} from "./i18n";
|
2021-05-09 09:29:16 +02:00
|
|
|
|
2021-02-28 01:17:21 +01:00
|
|
|
export function launch(conf) {
|
2021-07-14 22:07:03 +02:00
|
|
|
dialog_widget.launch({
|
|
|
|
...conf,
|
|
|
|
close_on_submit: true,
|
|
|
|
danger_submit_button: true,
|
|
|
|
focus_submit_on_open: true,
|
|
|
|
html_submit_button: $t_html({defaultMessage: "Confirm"}),
|
|
|
|
// Used to control button colors in the template.
|
|
|
|
});
|
2021-02-28 01:17:21 +01:00
|
|
|
}
|