Fix runmode
authorFulup Ar Foll <fulup@iot.bzh>
Sun, 29 May 2016 18:55:18 +0000 (20:55 +0200)
committerFulup Ar Foll <fulup@iot.bzh>
Sun, 29 May 2016 18:55:18 +0000 (20:55 +0200)
afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js

index a10030c..20b0b38 100644 (file)
@@ -93,8 +93,8 @@
                                         }
                                         scope.runstatus="start";
                                         notifySuccess (action, jresp);
-                                       if(response.data.response.uri)
-                                            scope.winapp= $window.open(response.data.response.uri.replace("%h", $location.host()));                                            
+                                       if(jresp.response.uri)
+                                            scope.winapp= $window.open(jresp.response.uri.replace("%h", $location.host()));                                            
                                     });
                                     break;
                                     
                                                 close   : closeModInfo,
                                                 icon    : scope.icon,
                                                 label   : scope.appID,
-                                                detail  : response.data.response
+                                                detail  : jresp.response
                                             }, template : tmplDetail
                                         }; 
                                         // Popup Modal to render application data