From cd37830411bf52c5f8dd32c25cc5ab7bc0875ff8 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Thu, 25 Feb 2021 13:16:45 +0100 Subject: [PATCH] B #5266: Fix VM warning box blocks other VM tabs (#883) Signed-off-by: Frederick Borges --- .../public/app/tabs/vms-tab/panels/info.js | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/info.js b/src/sunstone/public/app/tabs/vms-tab/panels/info.js index bd0bfc35b3..064cfe9cb9 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/info.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/info.js @@ -124,20 +124,30 @@ define(function(require) { monitoringTableContentHTML = Humanize.prettyPrintJSON(monitoring); } - var monitoring = $.extend({}, this.element.MONITORING); var errorMessageHTML = "" - if (this && - this.element && + if (this.element && this.element.USER_TEMPLATE && this.element.USER_TEMPLATE.ERROR){ - errorMessageHTML = "
" + - "
"+ - "
" + - "

" + - this.element.USER_TEMPLATE.ERROR + - "

"; + errorMessageHTML = + "
" + + "
" + + "
" + + "
"+ + "
" + + ""+ + "
"+ + "
"+ + "

" + this.element.USER_TEMPLATE.ERROR + "

" + + "
"+ + "
" + + "" + + "Dismiss"+ + "" + + "
" + + "
" + + "
" + + "
" + + "
"; }