File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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
4954const selectedModelType = computed ({
5055 get : () => props .modelValue ?? null ,
Original file line number Diff line number Diff line change 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 }) }}
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') }}
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export const assetFilenameSchema = z
5555// Export schemas following repository patterns
5656export const assetItemSchema = zAsset
5757export const assetResponseSchema = zAssetResponse
58- export const assetMetadataSchema = zAssetMetadata
5958
6059// Export types derived from Zod schemas
6160export type AssetItem = z . infer < typeof zAsset >
You can’t perform that action at this time.
0 commit comments