Skip to content

Commit e916eb3

Browse files
other PR code review fixes
1 parent b434dfe commit e916eb3

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/locales/en/main.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@
20092009
"modelTypeSelectorPlaceholder": "Select model type",
20102010
"selectModelType": "Select model type",
20112011
"notSureLeaveAsIs": "Not sure? Just leave this as is",
2012-
"modelUploaded": "Model uploaded!",
2012+
"modelUploaded": "Model uploaded! 🎉",
20132013
"findInLibrary": "Find it in the {type} section of the models library.",
20142014
"finish": "Finish",
20152015
"allModels": "All Models",

src/platform/assets/components/UploadModelConfirmation.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717
</label>
1818
<SingleSelect
1919
v-model="selectedModelType"
20-
:label="$t('assetBrowser.modelTypeSelectorPlaceholder')"
20+
:label="
21+
isLoading
22+
? $t('g.loading')
23+
: $t('assetBrowser.modelTypeSelectorPlaceholder')
24+
"
2125
:options="modelTypes"
26+
:disabled="isLoading"
2227
/>
2328
<div class="flex items-center gap-2 text-sm text-muted">
2429
<i class="icon-[lucide--info]" />
@@ -44,7 +49,7 @@ const emit = defineEmits<{
4449
'update:modelValue': [value: string | undefined]
4550
}>()
4651
47-
const { modelTypes } = useModelTypes()
52+
const { modelTypes, isLoading } = useModelTypes()
4853
4954
const selectedModelType = computed({
5055
get: () => props.modelValue ?? null,

src/platform/assets/components/UploadModelProgress.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div v-else-if="status === 'success'" class="flex flex-col gap-8">
2020
<div class="flex flex-col gap-4">
2121
<p class="text-sm text-muted m-0 font-bold">
22-
{{ $t('assetBrowser.modelUploaded') }} 🎉
22+
{{ $t('assetBrowser.modelUploaded') }}
2323
</p>
2424
<p class="text-sm text-muted m-0">
2525
{{ $t('assetBrowser.findInLibrary', { type: modelType }) }}
@@ -45,7 +45,7 @@
4545
v-else-if="status === 'error'"
4646
class="flex flex-1 flex-col items-center justify-center gap-6"
4747
>
48-
<i class="icon-[lucide--x-circle] text-6xl text-red-500" />
48+
<i class="icon-[lucide--x-circle] text-6xl text-error" />
4949
<div class="text-center">
5050
<p class="m-0 text-sm font-bold">
5151
{{ $t('assetBrowser.uploadFailed') }}

src/platform/assets/schemas/assetSchema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export const assetFilenameSchema = z
5555
// Export schemas following repository patterns
5656
export const assetItemSchema = zAsset
5757
export const assetResponseSchema = zAssetResponse
58-
export const assetMetadataSchema = zAssetMetadata
5958

6059
// Export types derived from Zod schemas
6160
export type AssetItem = z.infer<typeof zAsset>

0 commit comments

Comments
 (0)