Website: Update license dispenser signup form (#14368)

Closes: #14011

Changes:
- Updated the license dispenser signup form on
fleetdm.com/customers/signup to allow users to try to resubmit the form
without resetting the form fields.
This commit is contained in:
Eric 2023-10-06 18:16:09 -05:00 committed by GitHub
parent f0d77ab3db
commit 4caa05d131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -41,9 +41,8 @@ parasails.registerPage('signup', {
// ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝
methods: {
clickClearFormFields: async function() {
clickResetForm: async function() {
this.cloudError = '';
this.formData = {};
this.formErrors = {};
this.showFullForm = true;
await this.forceRender();

View file

@ -48,7 +48,7 @@
<cloud-error purpose="cloud-error" v-else-if="cloudError"></cloud-error>
<p class="small">By signing up you agree to our <a href="/legal/privacy">privacy policy</a> and <a href="/terms">terms of service</a>.</p>
<ajax-button purpose="submit-button" spinner="true" type="submit" :syncing="syncing" class="btn btn-block btn-lg btn-primary mt-4" v-if="!cloudError">Agree and continue</ajax-button>
<ajax-button purpose="submit-button" type="button" :syncing="syncing" class="btn btn-block btn-lg btn-primary mt-4" v-if="cloudError" @click="clickClearFormFields()">Reset form and try again</ajax-button>
<ajax-button purpose="submit-button" type="button" :syncing="syncing" class="btn btn-block btn-lg btn-primary mt-4" v-if="cloudError" @click="clickResetForm()">Try again</ajax-button>
</ajax-form>
</div>