From d0f29f2099e4be126616df0e251e86d7267933a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Mon, 18 Jul 2016 17:02:36 +0200 Subject: [PATCH] Bug #4646: Fix missing option in generic confirm dialog --- src/sunstone/public/app/tabs/images-tab/actions.js | 1 + src/sunstone/public/app/tabs/marketplaceapps-tab/actions.js | 1 + src/sunstone/public/app/tabs/templates-tab/actions-common.js | 1 + 3 files changed, 3 insertions(+) diff --git a/src/sunstone/public/app/tabs/images-tab/actions.js b/src/sunstone/public/app/tabs/images-tab/actions.js index 964b96fe3b..4c7bda28a2 100644 --- a/src/sunstone/public/app/tabs/images-tab/actions.js +++ b/src/sunstone/public/app/tabs/images-tab/actions.js @@ -91,6 +91,7 @@ define(function(require) { } else { Sunstone.getDialog(CONFIRM_DIALOG_ID).setParams({ header : Locale.tr("Error"), + headerTabId: TAB_ID, body : Locale.tr("This Image resides in Datastore ") + img.DATASTORE_ID + " (" + img.DATASTORE + ")" + Locale.tr(". The export action is not supported for that Datastore DS_MAD driver."), diff --git a/src/sunstone/public/app/tabs/marketplaceapps-tab/actions.js b/src/sunstone/public/app/tabs/marketplaceapps-tab/actions.js index 88b37c88b4..563c2dd6a3 100644 --- a/src/sunstone/public/app/tabs/marketplaceapps-tab/actions.js +++ b/src/sunstone/public/app/tabs/marketplaceapps-tab/actions.js @@ -123,6 +123,7 @@ define(function(require) { if (zone != config.zone_id){ Sunstone.getDialog(CONFIRM_DIALOG_ID).setParams({ header : Locale.tr("Error"), + headerTabId: TAB_ID, body : Locale.tr( "This MarketPlace App resides in Zone ") + zone + " (" + OpenNebula.Zone.getName(zone) + ")" + diff --git a/src/sunstone/public/app/tabs/templates-tab/actions-common.js b/src/sunstone/public/app/tabs/templates-tab/actions-common.js index dc7b303a7f..6783bca81f 100644 --- a/src/sunstone/public/app/tabs/templates-tab/actions-common.js +++ b/src/sunstone/public/app/tabs/templates-tab/actions-common.js @@ -51,6 +51,7 @@ define(function(require) { call: function() { Sunstone.getDialog(CONFIRM_DIALOG_ID).setParams({ //header : + headerTabId: TAB_ID, body : Locale.tr("This will delete the Template.
You can also delete any Image referenced inside this Template"), //question : buttons : [