Fix PolicyId
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / CldsModelService.js
index f6092b8..89197af 100644 (file)
@@ -18,7 +18,7 @@
  * limitations under the License.
  * ============LICENSE_END============================================
  * ===================================================================
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+ * 
  */
 
 app.service('cldsModelService', ['alertService', '$http', '$q', function(alertService, $http, $q) {
@@ -214,6 +214,7 @@ app.service('cldsModelService', ['alertService', '$http', '$q', function(alertSe
 
       })
       .error(function(data) {
+        def.resolve(data);
         alertService.alertMessage("Action Failure:" + uiAction, 2);
         //def         alertService.alertMessage("Action Successful:"+uiAction,1);
         def.reject(svcAction + " not successful");
@@ -284,6 +285,7 @@ app.service('cldsModelService', ['alertService', '$http', '$q', function(alertSe
     deploymentId = pars.deploymentId;
     setStatus(pars);
     this.enableDisableMenuOptions(pars);
+    elementMap = JSON.parse(pars.propText);
   }
 
   function setStatus(pars) {