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() {
}
// 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;
}
});
console.log ("Dashboard Controller Loaded");
-})();
\ No newline at end of file
+})();