chore: catalog card style
This commit is contained in:
@@ -221,6 +221,12 @@ const Models: React.FC<ModelsProps> = ({
|
||||
}, [deleteIds]);
|
||||
|
||||
const sourceOptions = [
|
||||
{
|
||||
label: intl.formatMessage({ id: 'menu.models.modelCatalog' }),
|
||||
value: 'catalog',
|
||||
key: 'catalog',
|
||||
icon: <IconFont type="icon-catalog"></IconFont>
|
||||
},
|
||||
{
|
||||
label: 'Hugging Face',
|
||||
value: modelSourceMap.huggingface_value,
|
||||
@@ -705,6 +711,9 @@ const Models: React.FC<ModelsProps> = ({
|
||||
source: modelSourceMap.local_path_value
|
||||
});
|
||||
}
|
||||
if (item.key === 'catalog') {
|
||||
navigate('/models/catalog');
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user