mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
(cherry picked from commit 1c98510723)
This commit is contained in:
1 parent
e096059857
commit
ca205ae63d
1 file changed
+11
@@ -230,6 +230,17 @@ define(function(require) {
|
||||
|
||||
json_template['ready_status_gate'] = ready_status_gate;
|
||||
|
||||
// add labels
|
||||
var currentInfo = Sunstone.getElementRightInfo(TAB_ID)
|
||||
if (
|
||||
currentInfo &&
|
||||
currentInfo.TEMPLATE &&
|
||||
currentInfo.TEMPLATE.BODY &&
|
||||
currentInfo.TEMPLATE.BODY.labels
|
||||
) {
|
||||
json_template['labels'] = currentInfo.TEMPLATE.BODY.labels
|
||||
}
|
||||
|
||||
if (this.action == "create") {
|
||||
Sunstone.runAction("ServiceTemplate.create", json_template );
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user