Skip to content

Commit 80e2971

Browse files
committed
added uuid as an option to present on the error popups
1 parent 0e89f76 commit 80e2971

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

src/js/api.library.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,15 @@ API - Library - Modal
533533
*******************************************************************************/
534534
api.modal = {};
535535

536-
/**
537-
* Pop a Confirm Modal in Bootstrap
538-
* @param {*} pMessage
539-
* @param {*} pCallbackMethod
540-
* @param {*} pCallbackParams
541-
* @param {*} pIconType
542-
* @param {*} pShowCancelMessageType
543-
* @param {*} pCancelMessage
544-
*/
536+
/**
537+
* Pop a Confirm Modal in Bootstrap
538+
* @param {*} pMessage
539+
* @param {*} pCallbackMethod
540+
* @param {*} pCallbackParams
541+
* @param {*} pIconType
542+
* @param {*} pShowCancelMessageType
543+
* @param {*} pCancelMessage
544+
*/
545545
api.modal.confirm = function (pMessage, pCallbackMethod, pCallbackParams, pIconType, pShowCancelMessageDialogType, pCancelMessage) {
546546
// Set the body of the Modal - Empty the container first
547547
var msgObj;
@@ -670,6 +670,7 @@ api.modal.error = function (pMessage) {
670670

671671
if (msgObj.hasOwnProperty('message')) {
672672
$("#modal-error").find('[name=message-content]').empty().html(msgObj.message);
673+
$("#modal-error").find('[name=message-uuid]').empty().html(msgObj.uuid);
673674
}
674675

675676
$("#modal-error").find("[name=error]").once("click", function () {
@@ -681,6 +682,7 @@ api.modal.error = function (pMessage) {
681682
$('.modal-hidden').removeClass('d-none');
682683
});
683684

685+
684686
// Display the Modal
685687
$("#modal-error").modal("show");
686688
};

0 commit comments

Comments
 (0)