diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-07 15:11:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-07 15:11:20 +0300 |
commit | 8e81ce50767bd5c785072c2487ffb61fe075977c (patch) | |
tree | 87fe3686b23f2581843a068d0278ee4018931c3f /app/assets/javascripts | |
parent | 0125f11d6bf7af5817dce9d87a116e2ed6bd1917 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/packages_and_registries/container_registry/explorer/components/details_page/tags_list_row.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/packages_and_registries/container_registry/explorer/components/details_page/tags_list_row.vue b/app/assets/javascripts/packages_and_registries/container_registry/explorer/components/details_page/tags_list_row.vue index c8a4f32d5a7..3796c5440f7 100644 --- a/app/assets/javascripts/packages_and_registries/container_registry/explorer/components/details_page/tags_list_row.vue +++ b/app/assets/javascripts/packages_and_registries/container_registry/explorer/components/details_page/tags_list_row.vue @@ -119,9 +119,15 @@ export default { tagLocation() { return this.tag.path?.replace(`:${this.tag.name}`, ''); }, + isEmptyRevision() { + return this.tag.revision === ''; + }, isInvalidTag() { return !this.tag.digest; }, + showConfigDigest() { + return !this.isInvalidTag && !this.isEmptyRevision; + }, }, }; </script> @@ -235,7 +241,7 @@ export default { /> </details-row> </template> - <template v-if="!isInvalidTag" #details-configuration-digest> + <template v-if="showConfigDigest" #details-configuration-digest> <details-row icon="cloud-gear" data-testid="configuration-detail"> <gl-sprintf :message="$options.i18n.CONFIGURATION_DETAILS_ROW_TEST"> <template #digest> |