fix unreadable notice for delete modals (#2379)

This commit is contained in:
Maxim Butakov
2021-02-28 21:20:05 +07:00
committed by GitHub
parent 2e7bfc822c
commit 5a90b36734
5 changed files with 14 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ export default class KimaiAjaxModalForm extends KimaiReducedClickHandler {
if (self.isDirty) {
if (jQuery('#remote_form_modal .modal-body .remote_modal_is_dirty_warning').length === 0) {
const msg = self.getContainer().getTranslation().get('modal.dirty');
jQuery('#remote_form_modal .modal-body').prepend('<p class="text-danger small remote_modal_is_dirty_warning">' + msg + '</p>');
jQuery('#remote_form_modal .modal-body').prepend('<p class="'+(self.modal.hasClass('modal-danger') ? 'well well-sm ' : '') + 'text-danger small remote_modal_is_dirty_warning">' + msg + '</p>');
}
e.preventDefault();
return;