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

Add an attribut isSignUpDisplayed to the config objects for the components amplify-sign-in #1993

Closed
cde06 opened this issue Oct 26, 2018 · 3 comments
Labels
Auth Related to Auth components/category feature-request Request a new feature Vue Related to Vue Framework issues

Comments

@cde06
Copy link
Contributor

cde06 commented Oct 26, 2018

Pullrequest #1994

Is your feature request related to a problem? Please describe.
I don't want to allow end-user to signup. So, I have disable signup feature from cognito but signup link is still available in the UI component SignIn.vue.

Describe the solution you'd like
I would like to be able to disable the signup feature on the component
aws-amplify-vue/src/components/authenticator/SignIn.vue thank to a boolean 'isSignUpDisplayed'
as:
<amplify-sign-in :signInConfig="signInConfig" />

 export default {
  data() {
    return {
        signInConfig: {
          isSignUpDisplayed : false //default true
        }
    };
  }
}

To achieve this target we just need to add a v-if="options.isSignUpDisplayed" on wrapping span tag in SignIn.vue

<span v-bind:class="amplifyUI.sectionFooterSecondaryContent" v-if="options.isSignUpDisplayed">
        No Account?
        <a v-bind:class="amplifyUI.a" v-on:click="signUp">Sign Up</a>
</span>
@nidsharm nidsharm added Vue Related to Vue Framework issues feature-request Request a new feature Auth Related to Auth components/category labels Oct 26, 2018
@shawnlauzon
Copy link

I could really use this for Angular; is it possible to integrate it into that build as well?

@haverchuck
Copy link
Contributor

@shawnlauzon - We will take a look doing this for Angular.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Auth Related to Auth components/category feature-request Request a new feature Vue Related to Vue Framework issues
Projects
None yet
Development

No branches or pull requests

5 participants