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

Fix vcenter import dialogs for templates and vnets

This commit is contained in:
Carlos Martín 2015-10-05 16:00:38 +02:00
parent 29c61436d2
commit 69e2ef75c7
2 changed files with 13 additions and 2 deletions

View File

@ -44,7 +44,12 @@ define(function(require) {
"Template.rename": _commonActions.singleAction('rename'),
"Template.create" : _commonActions.create(CREATE_DIALOG_ID),
"Template.create_dialog" : _commonActions.showCreate(CREATE_DIALOG_ID),
"Template.import_dialog" : _commonActions.showCreate(IMPORT_DIALOG_ID),
"Template.import_dialog" : {
type: "custom",
call: function() {
Sunstone.showFormPanel(TAB_ID, IMPORT_DIALOG_ID, "import");
}
},
"Template.update" : _commonActions.update(),
"Template.update_dialog" : _commonActions.checkAndShowUpdate(),
"Template.show_to_update" : _commonActions.showUpdate(CREATE_DIALOG_ID),

View File

@ -38,7 +38,6 @@ define(function(require) {
var _actions = {
"Network.create" : _commonActions.create(CREATE_DIALOG_ID),
"Network.create_dialog" : _commonActions.showCreate(CREATE_DIALOG_ID),
"Network.import_dialog" : _commonActions.showCreate(IMPORT_DIALOG_ID),
"Network.list" : _commonActions.list(),
"Network.show" : _commonActions.show(),
"Network.refresh" : _commonActions.refresh(),
@ -54,6 +53,13 @@ define(function(require) {
"Network.update_dialog" : _commonActions.checkAndShowUpdate(),
"Network.show_to_update" : _commonActions.showUpdate(CREATE_DIALOG_ID),
"Network.import_dialog" : {
type: "custom",
call: function() {
Sunstone.showFormPanel(TAB_ID, IMPORT_DIALOG_ID, "import");
}
},
"Network.add_ar" : {
type: "single",
call: OpenNebulaResource.add_ar,