diff --git a/src/sunstone/public/app/utils/common-actions.js b/src/sunstone/public/app/utils/common-actions.js index cfced4cb09..e2fb0992ea 100644 --- a/src/sunstone/public/app/utils/common-actions.js +++ b/src/sunstone/public/app/utils/common-actions.js @@ -188,7 +188,19 @@ define(function(require) { function _checkAndShowUpdate() { var that = this; - return _checkAndShow("show_to_update"); + return { + type: 'single', + call: function() { + var selectedNodes = Sunstone.getDataTable(that.tabId).elements(); + if (selectedNodes.length != 1) { + Notifier.notifyMessage('Please select one (and just one) resource to update.'); + return false; + } + + var resourceId = '' + selectedNodes[0]; + Sunstone.runAction(that.resourceStr + '.show_to_update', resourceId); + } + } } function _checkAndShow(action) {