mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-29 07:24:08 -04: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
|
return button.text('Failed to Submit Changes') if errors
|
||||||
res = modelToSave.save(null, {type: 'POST'}) # Override PUT so we can trigger postNewVersion logic
|
res = modelToSave.save(null, {type: 'POST'}) # Override PUT so we can trigger postNewVersion logic
|
||||||
return button.text('Failed to Submit Changes') unless res
|
return button.text('Failed to Submit Changes') unless res
|
||||||
|
button.text('Submitting...')
|
||||||
res.error => button.text('Error Submitting Changes')
|
res.error => button.text('Error Submitting Changes')
|
||||||
res.success => button.text('Submit Changes')
|
res.success => button.text('Submit Changes')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue