mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-21 13:41:40 +00:00
update Login/Register Container style & fix OnlyGuest Mixin
This commit is contained in:
@@ -4,7 +4,9 @@ var OnlyGuest = {
|
||||
componentDidMount: function () {
|
||||
if (AuthStore.check()) {
|
||||
var user = AuthStore.getUser()
|
||||
console.log(user)
|
||||
if (user == null) {
|
||||
return
|
||||
}
|
||||
var planet = user.Planets.length > 0 ? user.Planets[0] : null
|
||||
if (planet == null) {
|
||||
this.transitionTo('user', {userName: user.name})
|
||||
|
||||
Reference in New Issue
Block a user