mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix display issue on failed oauth connect #PROD-95
This commit is contained in:
parent
00935032e2
commit
f004bc8aaf
|
@ -336,6 +336,12 @@ export default mixins(
|
||||||
if (credentialData === null) {
|
if (credentialData === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the internal data directly so that even if it fails it displays a "Save" instead
|
||||||
|
// of the "Create" button. If that would not be done, people could not retry after a
|
||||||
|
// connect issue as it woult try to create credentials again which would fail as they
|
||||||
|
// exist already.
|
||||||
|
Vue.set(this, 'credentialDataTemp', credentialData);
|
||||||
} else {
|
} else {
|
||||||
// Exists already but got maybe changed. So save first
|
// Exists already but got maybe changed. So save first
|
||||||
credentialData = await this.updateCredentials(false) as ICredentialsDecryptedResponse;
|
credentialData = await this.updateCredentials(false) as ICredentialsDecryptedResponse;
|
||||||
|
@ -515,7 +521,7 @@ export default mixins(
|
||||||
|
|
||||||
.oauth-information {
|
.oauth-information {
|
||||||
line-height: 2.5em;
|
line-height: 2.5em;
|
||||||
margin-top: 2em;
|
margin: 2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parameter-wrapper {
|
.parameter-wrapper {
|
||||||
|
|
Loading…
Reference in a new issue