scope.runstatus="start";
notifySuccess (action, response);
if(response.data.response.uri)
- $window.open(response.data.response.uri.replace("%h", $location.host()));
+ scope.winapp= $window.open(response.data.response.uri.replace("%h", $location.host()));
});
break;
return;
}
scope.runstatus="stop";
+
+ // if a remote window app was open let's close it
+ if (scope.winapp) {
+ console.log ("Closing Application Window label=%s id=%s", scope.label, scope.appID);
+ scope.winapp.close();
+ scope.winapp=false;
+ }
notifySuccess (action, response);
});
break;