mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
feat: Asset Browser Placeholder update (#8349)
## Summary Remind Creators that they can add models that they don't have available yet ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8349-feat-Asset-Browser-Placeholder-update-2f66d73d3650815f83b4e7ce3587740c) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user