mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Added 'submitting...' text to the i18n translation form button to show when a submission is successful.
This commit is contained in:
parent
c235b1cc15
commit
aeebee891e
1 changed files with 1 additions and 0 deletions
|
@ -162,5 +162,6 @@ module.exports = class I18NEditModelView extends RootView
|
|||
return button.text('Failed to Submit Changes') if errors
|
||||
res = modelToSave.save(null, {type: 'POST'}) # Override PUT so we can trigger postNewVersion logic
|
||||
return button.text('Failed to Submit Changes') unless res
|
||||
button.text('Submitting...')
|
||||
res.error => button.text('Error Submitting Changes')
|
||||
res.success => button.text('Submit Changes')
|
||||
|
|
Loading…
Reference in a new issue