Skip to content

Commit

Permalink
Display the ID for non-system models (#8412)
Browse files Browse the repository at this point in the history
This is consistent with other user-controllable objects, and when you're
triggering the API manually, makes it easier to determine which ID to
use.
  • Loading branch information
SpecLad authored Sep 9, 2024
1 parent 632c4ce commit aaad059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvat-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.65.1",
"version": "1.65.2",
"description": "CVAT single-page application",
"main": "src/index.tsx",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion cvat-ui/src/components/models-page/deployed-model-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export default function DeployedModelItem(props: Props): JSX.Element {
/>
{ modelTopBar }
<div className='cvat-model-info-container'>
<Title level={3}>{model.name}</Title>
<Title level={3}>
{model.provider !== ModelProviders.CVAT && `#${model.id}: `}
{model.name}
</Title>
{modelDescription}
</div>
<Divider />
Expand Down Expand Up @@ -157,6 +160,7 @@ export default function DeployedModelItem(props: Props): JSX.Element {
<Meta
title={(
<Text ellipsis={{ tooltip: model.name }} onClick={onOpenModel} className='cvat-models-item-title' aria-hidden>
{model.provider !== ModelProviders.CVAT && `#${model.id}: `}
{model.name}
</Text>
)}
Expand Down

0 comments on commit aaad059

Please sign in to comment.