diff --git a/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js b/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js index 110b5d939d..45fcc9859d 100644 --- a/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js +++ b/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js @@ -15,6 +15,10 @@ window.ApplicationDetailView = Backbone.View.extend({ render: function() { $(this.el).html(this.template.render(this.model)); + if (!this.model.get('development') && !this.model.get('isSystem')) { + $('.delete', this.el).prop('disabled', false); + } + $.get(this.appUrl()).success(function () { $('.open', this.el).prop('disabled', false); }, this);