mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Display treema errors
This commit is contained in:
parent
2cfe7d0b43
commit
ac4df997c1
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,7 @@ module.exports = class RootView extends CocoView
|
|||
'click a': 'onClickAnchor'
|
||||
'click button': 'toggleModal'
|
||||
'click li': 'toggleModal'
|
||||
'treema-error': 'onTreemaError'
|
||||
|
||||
subscriptions:
|
||||
'achievements:new': 'handleNewAchievements'
|
||||
|
@ -184,3 +185,6 @@ module.exports = class RootView extends CocoView
|
|||
navigateToAdmin: ->
|
||||
if window.amActually or me.isAdmin()
|
||||
application.router.navigate('/admin', {trigger: true})
|
||||
|
||||
onTreemaError: (e) ->
|
||||
noty text: e.message, layout: 'topCenter', type: 'error', killer: false, timeout: 5000, dismissQueue: true
|
||||
|
|
Loading…
Reference in a new issue