1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #3912: Use commonAction in services tab

This commit is contained in:
Daniel Molina 2015-08-24 17:56:43 +02:00
parent bcafe19375
commit b3d77b0b68

View File

@ -14,7 +14,7 @@ define(function(require) {
var ROLES_PANEL_ID = require('./panels/roles/panelId');
var SCALE_DIALOG_ID = require('./dialogs/scale/dialogId');
var _commonActions = new CommonActions(OpenNebulaResource, RESOURCE, TAB_ID);
var _commonActions = new CommonActions(OpenNebulaResource, RESOURCE, TAB_ID, XML_ROOT);
function roleElements() {
var selected_nodes = [];
@ -51,6 +51,8 @@ define(function(require) {
"Service.chown": _commonActions.multipleAction('chown'),
"Service.chgrp": _commonActions.multipleAction('chgrp'),
"Service.chmod": _commonActions.singleAction('chmod'),
"Service.shutdown": _commonActions.multipleAction('shutdown'),
"Service.recover": _commonActions.multipleAction('recover'),
"Service.list" : {
type: "list",
@ -64,26 +66,6 @@ define(function(require) {
}
},
"Service.shutdown" : {
type: "multiple",
call: OpenNebulaResource.shutdown,
elements: function() {
return Sunstone.getDataTable(TAB_ID).elements();
},
error: Notifier.onError,
notify: true
},
"Service.recover" : {
type: "multiple",
call: OpenNebulaResource.recover,
elements: function() {
return Sunstone.getDataTable(TAB_ID).elements();
},
error: Notifier.onError,
notify: true
},
//--------------------------------------------------------------------------
"Role.scale_dialog" : {