Allow filters without content target for reloading

This commit is contained in:
2018-05-26 12:04:30 -03:00
parent 6f463f2b02
commit a96da6a282
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -79,8 +79,8 @@ export default Ember.Component.extend
@send 'closeModal' unless @preventClose
confirm: -> @send('ok')
saveRecord: ->
return if @get('is_saving')
@set 'is_saving', true # prevent click enthusiasts from creating to many instances or things like that
return if @get('is_saving') # prevent click enthusiasts from creating to many instances or things like that
@set 'is_saving', true
model = @get("model")
if typeof model.validate is 'function'
model.validate() # validate if method exists