Code Review
/
src
/
app-framework-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implement closing windows of remote launchs
[src/app-framework-demo.git]
/
afm-client
/
app
/
Frontend
/
widgets
/
ActionButtons
/
AppliButton.js
diff --git
a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
index
014fe4d
..
b7acb6b
100644
(file)
--- a/
afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
+++ b/
afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
@@
-90,7
+90,7
@@
scope.runstatus="start";
notifySuccess (action, response);
if(response.data.response.uri)
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;
});
break;
@@
-103,6
+103,13
@@
return;
}
scope.runstatus="stop";
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;
notifySuccess (action, response);
});
break;