summaryrefslogtreecommitdiffstats
path: root/afm-client/app/Frontend
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-02-15 11:55:21 +0100
committerFulup Ar Foll <fulup@iot.bzh>2016-02-15 11:55:21 +0100
commit7b885bd6ca1221a6b3013919c866c6b90f95c115 (patch)
tree3d4f96393670e361a7f58888048413be1f045df4 /afm-client/app/Frontend
parent9966df615382815fb6169c9ecd9e3e696f8fa615 (diff)
Added runmode=remote|local
Diffstat (limited to 'afm-client/app/Frontend')
-rw-r--r--afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
index f717225..014fe4d 100644
--- a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
+++ b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
@@ -50,10 +50,11 @@
'';
angular.module('AppliButton', [])
- .directive('appliButton', function (AppConfig, AppCall, ModalFactory, Notification, $timeout, $window, $location) {
+ .directive('appliButton', function (AppConfig, AppCall, ModalFactory, Notification, $timeout, $window, $location, urlquery) {
function mymethods(scope, elem, attrs) {
scope.runstatus = "stop";
+ scope.runmode = urlquery.runmode || "auto";
scope.clicked = function () {
var notifyError = function(action, response) {
@@ -81,7 +82,7 @@
case "start":
if (scope.runstatus !== "stop") return;
- AppCall.get ("afm-main", "start", {id: scope.appID, mode: "remote"}, function(response) {
+ AppCall.get ("afm-main", "start", {id: scope.appID, mode: scope.runmode}, function(response) {
if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
notifyError ("start", response);
return;