mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -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 a': 'onClickAnchor'
|
||||||
'click button': 'toggleModal'
|
'click button': 'toggleModal'
|
||||||
'click li': 'toggleModal'
|
'click li': 'toggleModal'
|
||||||
|
'treema-error': 'onTreemaError'
|
||||||
|
|
||||||
subscriptions:
|
subscriptions:
|
||||||
'achievements:new': 'handleNewAchievements'
|
'achievements:new': 'handleNewAchievements'
|
||||||
|
@ -184,3 +185,6 @@ module.exports = class RootView extends CocoView
|
||||||
navigateToAdmin: ->
|
navigateToAdmin: ->
|
||||||
if window.amActually or me.isAdmin()
|
if window.amActually or me.isAdmin()
|
||||||
application.router.navigate('/admin', {trigger: true})
|
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