mirror of https://gitee.com/bigwinds/arangodb
Delete Apps
This commit is contained in:
parent
c0b6e801b1
commit
0c5ca609da
|
@ -27,7 +27,19 @@ window.ApplicationDetailView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteApp: function() {
|
deleteApp: function() {
|
||||||
alert('Delete!');
|
modalDialogHelper.createModalDeleteDialog(
|
||||||
|
"Delete Foxx App mounted at '" + this.model.get('mount') + "'",
|
||||||
|
"deleteFoxxApp",
|
||||||
|
this.model,
|
||||||
|
function(model) {
|
||||||
|
model.destroy({
|
||||||
|
success: function () {
|
||||||
|
$("#deleteFoxxAppmodal").modal('hide');
|
||||||
|
window.App.navigate("applications", { trigger: true });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
appUrl: function () {
|
appUrl: function () {
|
||||||
|
|
Loading…
Reference in New Issue