Website: Update /connect-vanta form (#9421)

Changes: 
- Added a "Try again" button to the form on the `connect-vanta` page,
allowing users to update the form and resubmit without refreshing the
page.
This commit is contained in:
Eric 2023-01-18 19:14:12 -06:00 committed by GitHub
parent 8e35500f21
commit d5663b25ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -42,5 +42,11 @@ parasails.registerPage('connect-vanta', {
window.location = this.vantaAuthorizationRequestURL;
},
clickClearErrors: async function() {
this.cloudError = '';
this.formErrors = {};
await this.forceRender();
},
}
});

View file

@ -51,6 +51,7 @@
</cloud-error>
<cloud-error purpose="cloud-error" v-else-if="cloudError"></cloud-error>
<ajax-button style="height: 44px;" purpose="submit-button" spinner="true" type="submit" :syncing="syncing" class="btn btn-block btn-lg btn-info" v-if="!cloudError">Connect</ajax-button>
<ajax-button style="height: 44px;" purpose="submit-button" type="button" :syncing="syncing" class="btn btn-block btn-lg btn-info" v-if="cloudError" @click="clickClearErrors()">Try again</ajax-button>
</ajax-form>
</div>