mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
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:
parent
8e35500f21
commit
d5663b25ed
2 changed files with 7 additions and 0 deletions
|
|
@ -42,5 +42,11 @@ parasails.registerPage('connect-vanta', {
|
|||
window.location = this.vantaAuthorizationRequestURL;
|
||||
},
|
||||
|
||||
clickClearErrors: async function() {
|
||||
this.cloudError = '';
|
||||
this.formErrors = {};
|
||||
await this.forceRender();
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
|||
1
website/views/pages/connect-vanta.ejs
vendored
1
website/views/pages/connect-vanta.ejs
vendored
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue