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
Update Comment
[src/app-framework-demo.git]
/
afm-client
/
app
/
Frontend
/
pages
/
Dashboard
/
DashboardModule.js
diff --git
a/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js
b/afm-client/app/Frontend/pages/Dashboard/DashboardModule.js
index
c075372
..
0114a26
100644
(file)
--- 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.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;
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");
console.log ("file Uploaded");
+ // Cannot display post results as GetRunnable will overload them aynchronously
+ scope.request = "/api/afm-main/install";
+ scope.response = response.headers;
+ scope.errcode = response.status;
+
+ // everything looks OK update app list
scope.GetRunnables();
};
scope.GetRunnables();
};