Move save method in settings to actions
This commit is contained in:
parent
385287489c
commit
249d45ace6
|
@ -12,6 +12,7 @@ Travis.SettingsIndexController = Em.ObjectController.extend
|
|||
@set('settings.maximum_number_of_builds_valid', 'invalid')
|
||||
).observes('settings.maximum_number_of_builds')
|
||||
|
||||
save: ->
|
||||
@get('model').saveSettings(@get('settings')).then null, ->
|
||||
Travis.flash(error: 'There was an error while saving settings. Please try again.')
|
||||
actions:
|
||||
save: ->
|
||||
@get('model').saveSettings(@get('settings')).then null, ->
|
||||
Travis.flash(error: 'There was an error while saving settings. Please try again.')
|
||||
|
|
Loading…
Reference in New Issue
Block a user