summaryrefslogtreecommitdiffstats
path: root/afm-client/app/Frontend
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-02-11 17:37:42 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-02-11 17:37:42 +0100
commitcbe6ebb3e4a75269660caa6c2c9e8a97d384b4e2 (patch)
tree5da1af033df256f4ee78f9fa86a0849c84a3b2d9 /afm-client/app/Frontend
parentee82008b4b7b6a03287f86950d3bdb2b047b5bbc (diff)
added install
Change-Id: I38b58d9cc8843fdfed557b4e3e15d1462710e2e7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'afm-client/app/Frontend')
-rw-r--r--afm-client/app/Frontend/etc/AppConfig.js4
-rw-r--r--afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js13
2 files changed, 14 insertions, 3 deletions
diff --git a/afm-client/app/Frontend/etc/AppConfig.js b/afm-client/app/Frontend/etc/AppConfig.js
index 076cd91..177e825 100644
--- a/afm-client/app/Frontend/etc/AppConfig.js
+++ b/afm-client/app/Frontend/etc/AppConfig.js
@@ -13,7 +13,7 @@
paths: { // Warning paths should end with /
image : 'images/',
- icons : 'images/icons/',
+ icons : '/icons/',
avatar: 'images/avatars/',
audio : 'images/audio/',
appli : 'images/appli/'
@@ -53,4 +53,4 @@
});
-})(); \ No newline at end of file
+})();
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 @@
'<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>' +
'';
@@ -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;