mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +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",
|
"allModels": "All Models",
|
||||||
"byType": "By type",
|
"byType": "By type",
|
||||||
"emptyImported": {
|
"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."
|
"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",
|
"imported": "Imported",
|
||||||
"assetCollection": "Asset collection",
|
"assetCollection": "Asset collection",
|
||||||
"assets": "Assets",
|
"assets": "Assets",
|
||||||
|
|||||||
@@ -211,7 +211,11 @@ const shouldShowLeftPanel = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const emptyMessage = computed(() => {
|
const emptyMessage = computed(() => {
|
||||||
if (!isImportedSelected.value) return undefined
|
if (!isImportedSelected.value) {
|
||||||
|
return isUploadButtonEnabled.value
|
||||||
|
? t('assetBrowser.noResultsCanImport')
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
|
|
||||||
return isUploadButtonEnabled.value
|
return isUploadButtonEnabled.value
|
||||||
? t('assetBrowser.emptyImported.canImport')
|
? t('assetBrowser.emptyImported.canImport')
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<h3 class="mb-2 text-lg font-medium">
|
<h3 class="mb-2 text-lg font-medium">
|
||||||
{{ emptyTitle ?? $t('assetBrowser.noAssetsFound') }}
|
{{ emptyTitle ?? $t('assetBrowser.noAssetsFound') }}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-sm">
|
<p class="text-sm whitespace-pre-wrap text-center">
|
||||||
{{ emptyMessage ?? $t('assetBrowser.tryAdjustingFilters') }}
|
{{ emptyMessage ?? $t('assetBrowser.tryAdjustingFilters') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user