Add destroyRecord route action

This commit is contained in:
2018-04-18 20:39:42 +02:00
parent dbac6a6531
commit ad7006a781
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -108,6 +108,7 @@ export default Ember.Component.extend
else
model.rollbackAttributes() if typeof model.rollbackAttributes is 'function'
@send 'close'
destroyRecord: ->
my_scope = @
destroy_callback = @get('modal_options.destroy_callback') || ->