Skip to content

Commit

Permalink
only add model to list (of models to create image of) after trained s…
Browse files Browse the repository at this point in the history
…uccessfully
  • Loading branch information
GMBueno committed Oct 10, 2024
1 parent 3c628bd commit 2a483a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/FormSubmitImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/>

<!-- Model (name) selector -->
<Select v-model="model" :options="models ?? []" optionLabel="customName" optionValue="id" placeholder="Select Model" class="min-w-60 max-w-full ml-4 mb-2 md:mb-0" />
<Select v-model="model" :options="models?.filter(model => model.trainingResponseData.status === 'succeeded') ?? []" optionLabel="customName" optionValue="id" placeholder="Select Model" class="min-w-60 max-w-full ml-4 mb-2 md:mb-0" />
<Button class="ml-4" label="Create Images" type="submit"></Button>
</form>
</template>
Expand Down

0 comments on commit 2a483a2

Please sign in to comment.