confirm_dialog: Make Bootstrap fade class optional.

It would be better to load non-setting modals instantly.

This was previously reverted in
7bfa607d0a due to a rebase conflict.
This commit is contained in:
Ganesh Pawar
2021-06-09 20:05:08 +05:30
committed by Tim Abbott
parent 5be92ad30d
commit 6e4735a4e9
10 changed files with 13 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ import * as overlays from "./overlays";
*/
export function launch(conf) {
const html = render_confirm_dialog();
const html = render_confirm_dialog({fade: conf.fade});
const confirm_dialog = $(html);
const conf_fields = [
@@ -47,7 +47,7 @@ export function launch(conf) {
];
for (const f of conf_fields) {
if (!conf[f]) {
if (conf[f] === undefined) {
blueslip.error("programmer omitted " + f);
}
}