summaryrefslogtreecommitdiffstats
path: root/afm-client/app/Frontend/pages
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-15 22:01:37 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-15 22:01:37 +0200
commit922b183f441a6e68b55592596fa62cc6e1814f74 (patch)
tree4da858e9fe8d322bca6211a8a82a5f0651d373a3 /afm-client/app/Frontend/pages
parentb7fc92a77ba73e983eed280d769c8f7a86b0db3a (diff)
update to afb-daemon evolutions
- change the jtype - names uploaded widgets 'widget' Change-Id: I4634f71f820ba9c6619d944dd68b0238ed649a23 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'afm-client/app/Frontend/pages')
-rw-r--r--afm-client/app/Frontend/pages/Dashboard/Dashboard.html2
-rw-r--r--afm-client/app/Frontend/pages/Dashboard/DashboardModule.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/afm-client/app/Frontend/pages/Dashboard/Dashboard.html b/afm-client/app/Frontend/pages/Dashboard/Dashboard.html
index 6679b94..b5a9089 100644
--- a/afm-client/app/Frontend/pages/Dashboard/Dashboard.html
+++ b/afm-client/app/Frontend/pages/Dashboard/Dashboard.html
@@ -15,7 +15,7 @@ animationIn: slideInRight
<div class="button-box box-content ">
<appli-button ng-repeat="appliID in ctrl.appliIDs" store="ctrl.appliStore" handle="{{appliID}}" callback="ctrl.AppliCB"> </appli-button>
- <upload-appli class="ibz-right" label="Upload" icon="fi-upload" posturl="/api/afm-main/install" callback="ctrl.FileUploaded" title="Upload AGL App"></upload-appli>
+ <upload-appli class="ibz-right" label="Upload" name="widget" icon="fi-upload" posturl="/api/afm-main/install" callback="ctrl.FileUploaded" title="Upload AGL App"></upload-appli>
</div>
diff --git a/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js b/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js
index a52e5b6..dff21ed 100644
--- a/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js
+++ b/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js
@@ -42,7 +42,7 @@ angular.module('DashboardModule', ['SubmitButton', 'TokenRefresh', 'AppliButton'
}
// Check this is a valid response from Binder
- if (response.data.request.jtype !== "AJB_reply" && response.data.request.api !== "runnables") {
+ if (response.data.jtype != "afb-reply") {
Notification.error ({message: "Invalid Respond to /opa/afm-main/runnable response.data="+response.data, delay: 5000});
return;
}
@@ -78,4 +78,4 @@ angular.module('DashboardModule', ['SubmitButton', 'TokenRefresh', 'AppliButton'
});
console.log ("Dashboard Controller Loaded");
-})(); \ No newline at end of file
+})();