mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #4217: Fix checkAndShowUpdate
This commit is contained in:
parent
b20b96e76e
commit
6785e0fe02
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user