File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ defineProps<{
99 busy? : boolean ;
1010 validating? : boolean ;
1111 sourceType? : string ;
12+ canContinue? : boolean ;
1213}>();
1314const emit = defineEmits <{
1415 close: [];
@@ -39,7 +40,7 @@ const emit = defineEmits<{
3940 <button v-if =" !editing && step > 1" class =" secondary" type =" button" :disabled =" busy" @click =" emit('back')" >
4041 Voltar
4142 </button >
42- <button v-if =" !editing && step < 4" class =" primary" type =" button" :disabled =" busy || validating" @click =" emit('next')" >
43+ <button v-if =" !editing && step < 4" class =" primary" type =" button" :disabled =" busy || validating || canContinue === false " @click =" emit('next')" >
4344 {{ validating ? "Validando…" : step === 3 && sourceType === "compose" ? "Validar e continuar" : "Continuar" }}
4445 </button >
4546 <button v-if =" !editing && step === 4" class =" secondary" type =" button" :disabled =" busy" @click =" emit('draft')" >
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import BaseModal from "../components/ui/BaseModal.vue";
55import ComposeCodeEditor from " ../components/applications/ComposeCodeEditor.vue" ;
66import ApplicationWizard from " ../components/applications/ApplicationWizard.vue" ;
77import SourceSummary from " ../components/applications/SourceSummary.vue" ;
8- import WizardStepper from " ../components/applications/WizardStepper.vue" ;
98import EnvironmentVariablesEditor from " ../components/applications/EnvironmentVariablesEditor.vue" ;
109import SourceValidationPanel from " ../components/applications/SourceValidationPanel.vue" ;
1110import { api , RequestError } from " ../composables/useApi" ;
@@ -539,6 +538,7 @@ onMounted(load);
539538 :busy =" saving "
540539 :validating =" validating "
541540 :source-type =" newApp .source_type "
541+ :can-continue =" appStep !== 2 || Boolean (newApp .source_type )"
542542 @close =" closeWizard "
543543 @back =" appStep -= 1 "
544544 @next =" nextAppStep "
@@ -547,7 +547,6 @@ onMounted(load);
547547 @save =" saveApp "
548548 >
549549 <form v-if =" !editApp.id" id =" new-app-form" @submit.prevent =" submitCreate" >
550- <WizardStepper :step =" appStep " />
551550 <p class =" kicker" >ETAPA {{ appStep }} DE 4</p >
552551 <div v-if =" appStep === 1" >
553552 <h2 >Identifique a aplicação</h2 >
You can’t perform that action at this time.
0 commit comments