confirm_dialog: Change the style and position of error message element.

This commit changes the error message element of confirm_dialog to be
above the text of dialog and to be a nice box using already defined
"alert" class.
This commit is contained in:
sahil839
2021-07-05 15:45:12 +05:30
committed by Tim Abbott
parent 19362f393e
commit 0ebcb17397
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ export function launch(conf) {
link: conf.help_link,
}),
);
confirm_dialog.find(".confirm_dialog_body").prepend(conf.html_body);
confirm_dialog.find(".confirm_dialog_body").append(conf.html_body);
const yes_button_span = confirm_dialog.find(".confirm_dialog_yes_button span");

View File

@@ -4,7 +4,7 @@
<div class="confirm_dialog_heading"></div>
</div>
<div class="modal-body confirm_dialog_body">
<div id="confirm_dialog_error"></div>
<div id="confirm_dialog_error" class="alert"></div>
</div>
<div class="modal-footer">
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>