summaryrefslogtreecommitdiffstats
path: root/src/main/resources/META-INF
diff options
context:
space:
mode:
authorxg353y <xg353y@intl.att.com>2017-11-03 16:16:16 +0100
committerxg353y <xg353y@intl.att.com>2017-11-03 21:02:20 +0100
commitda4caf492050e17c1aaa8915064659a16e060d8d (patch)
treede359e80745e77725187bd800ed4d0801715f174 /src/main/resources/META-INF
parentbe0c6335f150d36bf50518e42dc2a03eae69dfb3 (diff)
Update the policyName send to Policy
Change-Id: Ib8ef7feb2404b15f215a1a7967d3af7d6ac89da0 Issue-Id: CLAMP-62 Signed-off-by: xg353y <xg353y@intl.att.com>
Diffstat (limited to 'src/main/resources/META-INF')
-rw-r--r--src/main/resources/META-INF/resources/designer/scripts/app.js29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/main/resources/META-INF/resources/designer/scripts/app.js b/src/main/resources/META-INF/resources/designer/scripts/app.js
index f300bb092..3c723626e 100644
--- a/src/main/resources/META-INF/resources/designer/scripts/app.js
+++ b/src/main/resources/META-INF/resources/designer/scripts/app.js
@@ -393,7 +393,7 @@ var app = angular.module('clds-app', ['ngRoute',
$scope
.cldsConfirmPerformAction("RESTART");
} else if (name == "Refresh Status") {
- $scope.cldsPerformAction("REFRESH");
+ $scope.refreshStatus();
} else if (name == "Properties CL") {
$scope.cldsOpenModelProperties();
} else if (name == "Deploy") {
@@ -1175,7 +1175,32 @@ var app = angular.module('clds-app', ['ngRoute',
// + data);
});
};
-
+ $scope.refreshStatus = function() {
+ var modelName = selected_model;
+ var svgXml = "";
+ console.log(abootDiagram.saveSVG({
+ format: true
+ }, function(err, xml) {
+ if (err)
+ console.log("error")
+ else
+ console.log(xml)
+ svgXml = xml;
+ }));
+ console.log("refreStatus modelName=" + modelName);
+ cldsModelService
+ .getModel(modelName)
+ .then(
+ function(pars) {
+ console
+ .log("refreStatus: pars=" +
+ pars);
+ cldsModelService
+ .processRefresh(pars);
+ },
+ function(data) {
+ });
+ };
$scope.cldsConfirmPerformAction = function(uiAction) {
var dlg = dialogs.confirm('Message',
'Do you want to ' +