diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-28 03:10:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-28 03:10:52 +0300 |
commit | 2a9fda3873be76cc9295d663e6157a071f2f882c (patch) | |
tree | 4743b51996f8f5de618044cb14ab6778676b0dab /app/assets | |
parent | d099cb5be9c4fa93ba9a114d11ba6dbe5f10a4eb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/ml/model_registry/apps/show_ml_model.vue | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/app/assets/javascripts/ml/model_registry/apps/show_ml_model.vue b/app/assets/javascripts/ml/model_registry/apps/show_ml_model.vue index 51b8fca6511..e771639dade 100644 --- a/app/assets/javascripts/ml/model_registry/apps/show_ml_model.vue +++ b/app/assets/javascripts/ml/model_registry/apps/show_ml_model.vue @@ -1,5 +1,5 @@ <script> -import { GlTab, GlTabs, GlBadge } from '@gitlab/ui'; +import { GlTab, GlTabs, GlBadge, GlLink } from '@gitlab/ui'; import MetadataItem from '~/vue_shared/components/registry/metadata_item.vue'; import TitleArea from '~/vue_shared/components/registry/title_area.vue'; import ModelVersionDetail from '~/ml/model_registry/components/model_version_detail.vue'; @@ -19,6 +19,7 @@ export default { GlBadge, MetadataItem, ModelVersionDetail, + GlLink, }, props: { model: { @@ -33,9 +34,6 @@ export default { candidateCount() { return this.model.candidateCount || 0; }, - latestVersionTitle() { - return `${i18n.LATEST_VERSION_LABEL}: ${this.model.latestVersion.version}`; - }, }, i18n, modelVersionEntity: MODEL_ENTITIES.modelVersion, @@ -60,7 +58,14 @@ export default { <gl-tabs class="gl-mt-4"> <gl-tab :title="$options.i18n.MODEL_DETAILS_TAB_LABEL"> <template v-if="model.latestVersion"> - <h3 class="gl-font-lg">{{ latestVersionTitle }}</h3> + <h3 class="gl-font-lg"> + {{ $options.i18n.LATEST_VERSION_LABEL }}: + + <gl-link :href="model.latestVersion.path" data-testid="model-version-link"> + {{ model.latestVersion.version }} + </gl-link> + </h3> + <model-version-detail :model-version="model.latestVersion" /> </template> |