This commit is contained in:
Seth Call 2016-01-08 17:29:58 -06:00
parent 6344e14f7d
commit 7a7d7c0829
2 changed files with 10 additions and 1 deletions

View File

@ -8,6 +8,13 @@ rest = context.JK.Rest()
mixins: [Reflux.listenTo(@AppStore, "onAppInit"), Reflux.listenTo(@UserStore, "onUserChanged")]
onAppInit: (@app) ->
@app.bindScreen('/teacher/profile', {beforeShow: @beforeShow, afterShow: @afterShow})
beforeShow: () ->
rest.getUserDetail(id)
afterShow: () ->
getInitialState: () ->
{user: null}
@ -17,6 +24,6 @@ rest = context.JK.Rest()
render: () ->
`<div className="content-body-scroller">
</div>`
})

View File

@ -363,6 +363,8 @@
var signinDialog = new JK.SigninDialog(JK.app);
signinDialog.initialize();
JK.SigninPage(); // initialize signin helper
// do a client update early check upon initialization