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

STENCIL-2504 Show account creation only if it is enabled in store settings. #917

Merged
merged 1 commit into from
Feb 9, 2017
Merged

STENCIL-2504 Show account creation only if it is enabled in store settings. #917

merged 1 commit into from
Feb 9, 2017

Conversation

junedkazi
Copy link
Contributor

This PR fixes 2 things;

  • Sign In link is displayed always.
  • Show the Sign Up link when the settings is enabled in the store settings.

@mcampa @mjschock @bigcommerce/stencil-team

@nickdengler can we test this one.

Copy link
Contributor

@mcampa mcampa left a comment

Choose a reason for hiding this comment

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

👍

@mattolson
Copy link
Contributor

👍

@bigbot
Copy link

bigbot commented Feb 7, 2017

Autotagging @mcampa @bc-miko-ademagic @davidchin

@mcampa
Copy link
Contributor

mcampa commented Feb 7, 2017

We are now using CHANGELOG.md. Please add an entry with your change under draft before merging

## Draft
- <here>

## 1.5.1 (2017-02-07)
- ...

@nickdengler
Copy link
Contributor

If account creation is turned off, when the 'Sign in' link is clicked, you are taken to a blank page. Is there a BCApp pr that goes with this one?

@mcampa
Copy link
Contributor

mcampa commented Feb 8, 2017

image

</textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
<div class="panel">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just indenting the markup.

{{/if}}
<div class="form-actions">
<input type="submit" class="button button--primary" value="{{lang 'forms.create_account.submit_value' }}" />
<input type="submit" class="button button--primary" value="{{lang 'forms.create_account.submit_value' }}" {{#unless settings.account_creation_enabled}}disabled{{/unless}} />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Disable the submit button if account creation is disabled.

Copy link
Contributor

Choose a reason for hiding this comment

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

why not disable the entire form?
People will think is a bug if you only disable the the submit button

@junedkazi
Copy link
Contributor Author

stencil-account-creation-disabled

@mcampa
Copy link
Contributor

mcampa commented Feb 8, 2017

IMO we should not render the entire form if create account is disabled

@junedkazi
Copy link
Contributor Author

I like the idea.
stencil-do-not-render-form

@junedkazi
Copy link
Contributor Author

@nickdengler to test 1 you will need this bcapp branch https://github.com/bigcommerce/bigcommerce/pull/17364

@nickdengler
Copy link
Contributor

Ok got it now, LGTM 💚

I also added a ticket for the centering (STENCIL-3011)

@mcampa mcampa merged commit c959917 into bigcommerce:master Feb 9, 2017
@junedkazi junedkazi deleted the STENCIL-2504-account branch February 9, 2017 17:55
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

5 participants