update to afb-daemon evolutions
[src/app-framework-demo.git] / afm-client / app / Frontend / pages / Dashboard / DashboardModule.js
index f4330cf..dff21ed 100644 (file)
@@ -21,6 +21,9 @@ angular.module('DashboardModule', ['SubmitButton', 'TokenRefresh', 'AppliButton'
                 scope.request  = action; 
                 scope.errcode  = response.status;
                 if (response.data) scope.response = response.data;
+                
+                // On app was removed let's update runnable list
+                if (action === "uninstall")  scope.GetRunnables();
         };
         
         scope.GetRunnables = function() {
@@ -39,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;
                 }
@@ -75,4 +78,4 @@ angular.module('DashboardModule', ['SubmitButton', 'TokenRefresh', 'AppliButton'
    });
 
 console.log ("Dashboard Controller Loaded");
-})(); 
\ No newline at end of file
+})();