diff --git a/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js b/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js index 524c6134c5..feb0ac2833 100644 --- a/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js @@ -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;