Skip to content

Commit

Permalink
Website: Update license dispenser signup form (#14368)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eashaw authored Oct 6, 2023
1 parent f0d77ab commit 4caa05d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions website/assets/js/pages/entrance/signup.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion website/views/pages/entrance/signup.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 4caa05d

Please sign in to comment.