Commit 49772b6b authored by efikalti's avatar efikalti
Browse files

removed js components files for delete

parent 1a8eab2b
import Ember from 'ember';
export default Ember.Component.extend({
request: false,
failure: false,
actions: {
delete(lambdaApp) {
if (confirm("Are you sure you want to delete?")) {
var _this = this;
lambdaApp.deleteRecord();
lambdaApp.save().catch(function() {
_this.failure = true;
});
return false;
}
return false;
}
}
});
import Ember from 'ember';
export default Ember.Component.extend({
request: false,
failure: false,
actions: {
delete(lambdaInstance) {
var _this = this;
if (confirm("Are you sure you want to delete?")) {
lambdaInstance.deleteRecord();
lambdaInstance.save().catch(function() {
_this.failure = true;
});
// lambdaInstance.destroyRecord().catch(function() {
// _this.set('failure', true);
// });
return false;
}
return false;
}
}
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment