Skip to content

Commit

Permalink
Updated renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
aborrego3 committed Jan 26, 2023
1 parent 23419d1 commit 3f5e84d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/js/renderers/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const messageRenderer = {

showMessageAsAlert: function (message, bootClass, err) {
let html = `<div class="alert alert-${bootClass} alert-dismissible col-md-12 fade show">
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
${message}
</div>`;
let errorsDiv = getErrorsDiv();
Expand All @@ -32,15 +32,15 @@ const messageRenderer = {
}
},

showErrorAsAlert: function (message, err = null) {
showErrorMessage: function (message, err = null) {
this.showMessageAsAlert(message, "danger", err);
},

showWarningAsAlert: function (message, err = null) {
showWarningMessage: function (message, err = null) {
this.showMessageAsAlert(message, "warning", err);
},

showSuccessAsAlert: function (message, err = null) {
showSuccessMessage: function (message, err = null) {
this.showMessageAsAlert(message, "success", err);
},
}
Expand Down

0 comments on commit 3f5e84d

Please sign in to comment.