Fix initialization for pro
This commit is contained in:
parent
f566d601ee
commit
35b059e783
|
@ -47,6 +47,12 @@ unless window.TravisApplication
|
||||||
@tailing = new Travis.Tailing($(window), '#tail', '#log')
|
@tailing = new Travis.Tailing($(window), '#tail', '#log')
|
||||||
@toTop = new Travis.ToTop($(window), '.to-top', '#log-container')
|
@toTop = new Travis.ToTop($(window), '.to-top', '#log-container')
|
||||||
|
|
||||||
|
@on 'user:signed_in', (user) ->
|
||||||
|
Travis.onUserUpdate(user)
|
||||||
|
|
||||||
|
@on 'user:synced', (user) ->
|
||||||
|
Travis.onUserUpdate(user)
|
||||||
|
|
||||||
reset: ->
|
reset: ->
|
||||||
@_super.apply(this, arguments)
|
@_super.apply(this, arguments)
|
||||||
@get('modelClasses').forEach (klass) ->
|
@get('modelClasses').forEach (klass) ->
|
||||||
|
@ -144,7 +150,6 @@ unless window.TravisApplication
|
||||||
|
|
||||||
currentDate: ->
|
currentDate: ->
|
||||||
new Date()
|
new Date()
|
||||||
)
|
|
||||||
|
|
||||||
onUserUpdate: (user) ->
|
onUserUpdate: (user) ->
|
||||||
if Travis.config.pro
|
if Travis.config.pro
|
||||||
|
@ -178,12 +183,4 @@ unless window.TravisApplication
|
||||||
name: user.name
|
name: user.name
|
||||||
created_at: (Date.parse(user.created_at) / 1000) || null
|
created_at: (Date.parse(user.created_at) / 1000) || null
|
||||||
login: user.login
|
login: user.login
|
||||||
|
)
|
||||||
@on 'user:signed_in', (user) ->
|
|
||||||
Travis.onUserUpdate(user)
|
|
||||||
|
|
||||||
@on 'user:synced', (user) ->
|
|
||||||
Travis.onUserUpdate(user)
|
|
||||||
|
|
||||||
@_super.apply this, arguments
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user