AppliButton: fixup terminate action
authorYannick Gicquel <yannick.gicquel@iot.bzh>
Thu, 28 Jan 2016 18:39:10 +0000 (19:39 +0100)
committerYannick Gicquel <yannick.gicquel@iot.bzh>
Thu, 28 Jan 2016 18:39:14 +0000 (19:39 +0100)
'stop' is used to put apps in pause, and 'cont' to unpause them.
to exit an app, 'terminate' has been choosen

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js

index f54c5b0..b2d42b0 100644 (file)
@@ -89,7 +89,7 @@
                                     break;
                                     
                                 case "stop":
-                                    AppCall.get ("afm-main", "stop", {id: scope.runID}, function(response) {
+                                    AppCall.get ("afm-main", "terminate", {runid: scope.runID}, function(response) {
                                         if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
                                             notifyError ("stop", response);
                                             return;