mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
1 parent
272bf36404
commit
057e5cc4d9
2 files changed
+17
-1
No files matched your search
@@ -35,7 +35,6 @@ define(function(require) {
|
||||
|
||||
var _actions = {
|
||||
"ServiceTemplate.create" : _commonActions.create(CREATE_DIALOG_ID),
|
||||
"ServiceTemplate.create_dialog" : _commonActions.showCreate(CREATE_DIALOG_ID),
|
||||
"ServiceTemplate.show" : _commonActions.show(),
|
||||
"ServiceTemplate.refresh" : _commonActions.refresh(),
|
||||
"ServiceTemplate.delete" : _commonActions.del(),
|
||||
@@ -46,6 +45,14 @@ define(function(require) {
|
||||
"ServiceTemplate.update" : _commonActions.update(),
|
||||
"ServiceTemplate.update_dialog" : _commonActions.checkAndShowUpdate(),
|
||||
|
||||
"ServiceTemplate.create_dialog" : {
|
||||
type: "custom",
|
||||
call: function() {
|
||||
Sunstone.runAction("Network.list");
|
||||
Sunstone.runAction("VNTemplate.list");
|
||||
Sunstone.showFormPanel(TAB_ID, CREATE_DIALOG_ID, "create");
|
||||
}
|
||||
},
|
||||
"ServiceTemplate.show_to_update" : {
|
||||
type: "single",
|
||||
call: function(params) {
|
||||
|
||||
@@ -611,8 +611,17 @@ define(function(require) {
|
||||
|
||||
function _get_networks() {
|
||||
var networks = OpenNebulaAction.cache("VNET");
|
||||
if (networks === undefined) {
|
||||
Sunstone.runAction("Network.list");
|
||||
networks = OpenNebulaAction.cache("VNET");
|
||||
}
|
||||
networks = networks ? networks.data : [];
|
||||
|
||||
var vntemplates = OpenNebulaAction.cache("VNTEMPLATE");
|
||||
if (vntemplates === undefined) {
|
||||
Sunstone.runAction("VNTemplate.list");
|
||||
vntemplates = OpenNebulaAction.cache("VNTEMPLATE");
|
||||
}
|
||||
vntemplates = vntemplates ? vntemplates.data : [];
|
||||
|
||||
// Get networks list
|
||||
|
||||
Reference in new issue
Block a user