Skip to content
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

Merged
merged 3 commits into from
Sep 24, 2015

Conversation

KTKate
Copy link
Contributor

@KTKate KTKate commented Sep 7, 2015

Current

twiddle-signin-old

### This PR

twiddle-signin-new

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.

userName: Ember.computed('session.isAuthenticated', function() {
return this.get('session.isAuthenticated') ? this.get('session.currentUser.login') : "Anonymous";
}),
userName: Ember.computed.alias('session.currentUser.login'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

computed.readOnly

@stefanpenner
Copy link
Contributor

looks great

@KTKate
Copy link
Contributor Author

KTKate commented Sep 7, 2015

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 '});
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you have to

  1. Change the title
  2. Save the gist
  3. Load Ember Twiddle with the saved gist.

Copy link
Contributor Author

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!

Copy link
Contributor

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?

Gaurav0 added a commit that referenced this pull request Sep 24, 2015
better sign in that fixes #183 & hack that fixes #187 ....again
@Gaurav0 Gaurav0 merged commit 93661e4 into ember-cli:master Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants