Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -2458,9 +2458,10 @@
"allModels": "All Models",
"byType": "By type",
"emptyImported": {
"canImport": "No imported models yet. Click \"Import Model\" to add your own.",
"canImport": "No imported models yet. Click \"Import\" to add your own.",
"restricted": "Personal models are only available at Creator tier and above."
},
"noResultsCanImport": "Try adjusting your search or filters.\nYou can also add models using the \"Import\" button above.",
"imported": "Imported",
"assetCollection": "Asset collection",
"assets": "Assets",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -2809,4 +2809,4 @@
"showMinimap": "显示小地图",
"zoomToFit": "适合画面"
}
}
}
6 changes: 5 additions & 1 deletion src/platform/assets/components/AssetBrowserModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ const shouldShowLeftPanel = computed(() => {
})

const emptyMessage = computed(() => {
if (!isImportedSelected.value) return undefined
if (!isImportedSelected.value) {
return isUploadButtonEnabled.value
? t('assetBrowser.noResultsCanImport')
: undefined
}

return isUploadButtonEnabled.value
? t('assetBrowser.emptyImported.canImport')
Expand Down
2 changes: 1 addition & 1 deletion src/platform/assets/components/AssetGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<h3 class="mb-2 text-lg font-medium">
{{ emptyTitle ?? $t('assetBrowser.noAssetsFound') }}
</h3>
<p class="text-sm">
<p class="text-sm whitespace-pre-wrap text-center">
{{ emptyMessage ?? $t('assetBrowser.tryAdjustingFilters') }}
</p>
</div>
Expand Down