Code Review
/
src
/
app-framework-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
added install
[src/app-framework-demo.git]
/
afm-client
/
app
/
Frontend
/
widgets
/
ActionButtons
/
AppliButton.js
diff --git
a/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
b/afm-client/app/Frontend/widgets/ActionButtons/AppliButton.js
index
b2d42b0
..
0ed0415
100644
(file)
--- 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("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>' +
'';
'</ul>' +
'';
@@
-122,8
+123,18
@@
});
break;
});
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;
default:
console.log ("ActionModal unknown action=[%s]", action);
break;