-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better sign in that fixes #183 & hack that fixes #187 ....again #190
Conversation
userName: Ember.computed('session.isAuthenticated', function() { | ||
return this.get('session.isAuthenticated') ? this.get('session.currentUser.login') : "Anonymous"; | ||
}), | ||
userName: Ember.computed.alias('session.currentUser.login'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
computed.readOnly
looks great |
Haha as soon as I submitted the PR I realized that would have been better. I'll change it. |
@@ -7,7 +7,7 @@ export default GistRoute.extend({ | |||
model () { | |||
this.store.unloadAll('gistFile'); | |||
|
|||
var model = this.store.createRecord('gist', {description: 'New Twiddle'}); | |||
var model = this.store.createRecord('gist', {description: 'New Twiddle '}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a space here won't fix it if the user changes the name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I wasn't aware the problem happened when the title had been changed. Even if the named has been changed and then later reverted back to New Twiddle
. Please show steps to reproduce a once edited title getting cut off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you have to
- Change the title
- Save the gist
- Load Ember Twiddle with the saved gist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that before and just tried it again and the title was not cut off. I tried it both logged in and logged out. This issue is unpredictable enough it's almost like a practical joke!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I know. Sorry. Maybe instead of adding a space to the value you can add a space to a computed property based on value and show that?
Current
### This PR
I moved the github icon to the right because it looked disjointed on the left somehow. Once signed in, the user's avatar is unchanged.