X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=afm-client%2Fapp%2FFrontend%2Fwidgets%2FActionButtons%2FAppliButton.js;h=0ed0415e36c1a62921f3042805f9367ec7159496;hb=cbe6ebb3e4a75269660caa6c2c9e8a97d384b4e2;hp=b2d42b00815367f1d6f730ca60a6bb62308745b3;hpb=ba3ec968e550e6db1f9753c000b4a81306d271f0;p=src%2Fapp-framework-demo.git diff --git a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js index b2d42b0..0ed0415 100644 --- a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js +++ b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js @@ -34,6 +34,7 @@ '
  • Start
  • ' + '
  • Stop
  • ' + '
  • Info
  • ' + + '
  • Uninstall
  • ' + '' + ''; @@ -122,8 +123,18 @@ }); 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;