X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-demo.git;a=blobdiff_plain;f=afm-client%2Fapp%2FFrontend%2Fpages%2FDashboard%2FDashboardModule.js;h=83408a5610efbe2775358536a4288bc495bb438a;hp=c0753720be816ab49eac2154a3c9e86a4b19641e;hb=3d6f539592cb2171ed67b3c2b0246fd72ddfaa0d;hpb=712446796a33a47ea7e5fafd7950141ac8060530 diff --git a/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js b/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js index c075372..83408a5 100644 --- a/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js +++ b/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js @@ -15,11 +15,7 @@ angular.module('DashboardModule', ['SubmitButton', 'TokenRefresh', 'AppliButton' scope.appliIDs =[]; // array to hold applications ID scope.appliStore={}; // array to hold applications json description - scope.AppliCB = function (appliID) { - console.log ("Application Clicked ID=[%s]", appliID); - - }; - + scope.AppliCB = function(appliID, action, response) { // Action is done within Widget Controller only update debug UI zone scope.request = action; @@ -59,8 +55,14 @@ angular.module('DashboardModule', ['SubmitButton', 'TokenRefresh', 'AppliButton' }); }; - scope.FileUploaded = function (status) { + scope.FileUploaded = function (response) { console.log ("file Uploaded"); + // Cannot display post results as GetRunnable will overload them + scope.request = "/api/afm-main/runnable"; + scope.response = response.headers; + scope.errcode = response.status; + + // everything looks OK update app list scope.GetRunnables(); };