'<li><a ng-click=action("start")><i class="fi-check"> Start</i></a></li>' +
'<li><a ng-click=action("stop")><i class="fi-x"> Stop</i></a></li>' +
'<li><a ng-click=action("info")><i class="fi-info"> Info</i></a></li>' +
+ '<li><a ng-click=action("uninstall")><i class="fi-x"> Uninstall</i></a></li>' +
'</ul>' +
'';
break;
case "stop":
- AppCall.get ("afm-main", "stop", {id: scope.runID}, function(response) {
+ AppCall.get ("afm-main", "terminate", {runid: scope.runID}, function(response) {
if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
notifyError ("stop", response);
return;
});
break;
+
+ case "uninstall":
+ AppCall.get ("afm-main", "uninstall", {id: scope.appID}, function(response) {
+ if (response.status !== 200 || response.data.jtype !== "AJB_reply") {
+ notifyError ("uninstall", response);
+ return;
+ }
-
+ notifySuccess ("uninstall", response);
+ });
+ break;
+
default:
console.log ("ActionModal unknown action=[%s]", action);
break;
// extract application information from AppID+Store
if (attrs.handle && scope.store [attrs.handle].name) {
- scope.icon = AppConfig.paths.icons + scope.store [attrs.handle].name.toLowerCase() + '-ico.png';
+ scope.icon = AppConfig.paths.icons + attrs.handle; //scope.store [attrs.handle].name.toLowerCase() + '-ico.png';
scope.label = scope.store [attrs.handle].name;
scope.appID= attrs.handle;
} else {