fix: Disable continue button unless at least 1 cred has been filled (no-changelog) (#7959)
Disable the continue button in template credential setup unless at least one credential has been (pre-)filled
This commit is contained in:
@@ -129,14 +129,21 @@ onMounted(async () => {
|
||||
i18n.baseText('templateSetup.skip')
|
||||
}}</n8n-link>
|
||||
|
||||
<n8n-button
|
||||
<n8n-tooltip
|
||||
v-if="isReady"
|
||||
size="large"
|
||||
:label="i18n.baseText('templateSetup.continue.button')"
|
||||
:disabled="setupTemplateStore.isSaving"
|
||||
@click="setupTemplateStore.createWorkflow({ router })"
|
||||
data-test-id="continue-button"
|
||||
/>
|
||||
:content="i18n.baseText('templateSetup.continue.button.fillRemaining')"
|
||||
:disabled="setupTemplateStore.numFilledCredentials > 0"
|
||||
>
|
||||
<n8n-button
|
||||
size="large"
|
||||
:label="i18n.baseText('templateSetup.continue.button')"
|
||||
:disabled="
|
||||
setupTemplateStore.isSaving || setupTemplateStore.numFilledCredentials === 0
|
||||
"
|
||||
@click="setupTemplateStore.createWorkflow({ router })"
|
||||
data-test-id="continue-button"
|
||||
/>
|
||||
</n8n-tooltip>
|
||||
<div v-else>
|
||||
<n8n-loading variant="button" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user