From 912e47e56c772eb6c2fb5b32f898b029a985fdfc Mon Sep 17 00:00:00 2001 From: Kirill Lakhov Date: Wed, 8 Feb 2023 19:08:52 +0300 Subject: [PATCH] Added special description to built-in models (#5682) ### Motivation and context ### How has this been tested? ### Checklist - [ ] I submit my changes into the `develop` branch - [ ] I have added a description of my changes into the [CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md) file - [ ] I have updated the documentation accordingly - [ ] I have added tests to cover my changes - [ ] I have linked related issues (see [GitHub docs]( https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) - [ ] I have increased versions of npm packages if it is necessary ([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning), [cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning), [cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning) and [cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning)) ### License - [ ] I submit _my code changes_ under the same [MIT License]( https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern. --- cvat-ui/src/components/models-page/deployed-model-item.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cvat-ui/src/components/models-page/deployed-model-item.tsx b/cvat-ui/src/components/models-page/deployed-model-item.tsx index 58cb8536..77d5cae8 100644 --- a/cvat-ui/src/components/models-page/deployed-model-item.tsx +++ b/cvat-ui/src/components/models-page/deployed-model-item.tsx @@ -44,6 +44,9 @@ export default function DeployedModelItem(props: Props): JSX.Element { const created = moment(model.createdDate).fromNow(); const icon = ; + const modelDescription = model.provider !== ModelProviders.CVAT ? + {`Added ${created}`} : + System model; return ( <> {icon} : null}
{model.name} - {`Added ${created}`} + {modelDescription}
{ @@ -138,7 +141,7 @@ export default function DeployedModelItem(props: Props): JSX.Element {
{model.owner && ({model.owner})} - {` Added ${created}`} + {modelDescription} { model.provider !== ModelProviders.CVAT && (