diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-02 21:10:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-02 21:10:57 +0300 |
commit | 63fbe648bba03254f7658b50deb2521fa8ac08d3 (patch) | |
tree | bb01ef4333b3bf8d34f42f4fc7f04184a48ab626 /app/assets/javascripts/packages_and_registries | |
parent | f62efc386492a3e7ee2243202389d29ab62b5978 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/packages_and_registries')
-rw-r--r-- | app/assets/javascripts/packages_and_registries/dependency_proxy/app.vue | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/app/assets/javascripts/packages_and_registries/dependency_proxy/app.vue b/app/assets/javascripts/packages_and_registries/dependency_proxy/app.vue index 9ecd0dd70fe..6c64fd4ccb1 100644 --- a/app/assets/javascripts/packages_and_registries/dependency_proxy/app.vue +++ b/app/assets/javascripts/packages_and_registries/dependency_proxy/app.vue @@ -122,6 +122,9 @@ export default { showDeleteDropdown() { return this.group.dependencyProxyManifests?.nodes.length > 0; }, + showDependencyProxyImagePrefix() { + return this.group.dependencyProxyImagePrefix?.length > 0; + }, }, methods: { fetchNextPage() { @@ -186,6 +189,31 @@ export default { </gl-dropdown> </template> </title-area> + + <gl-form-group v-if="showDependencyProxyImagePrefix" :label="$options.i18n.proxyImagePrefix"> + <gl-form-input-group + readonly + :value="group.dependencyProxyImagePrefix" + class="gl-layout-w-limited" + data-testid="proxy-url" + > + <template #append> + <clipboard-button + :text="group.dependencyProxyImagePrefix" + :title="$options.i18n.copyImagePrefixText" + /> + </template> + </gl-form-input-group> + <template #description> + <span data-qa-selector="dependency_proxy_count" data-testid="proxy-count"> + <gl-sprintf :message="$options.i18n.blobCountAndSize"> + <template #count>{{ group.dependencyProxyBlobCount }}</template> + <template #size>{{ group.dependencyProxyTotalSize }}</template> + </gl-sprintf> + </span> + </template> + </gl-form-group> + <gl-alert v-if="!dependencyProxyAvailable" :dismissible="false" @@ -197,30 +225,6 @@ export default { <gl-skeleton-loader v-else-if="$apollo.queries.group.loading" /> <div v-else data-testid="main-area"> - <gl-form-group :label="$options.i18n.proxyImagePrefix"> - <gl-form-input-group - readonly - :value="group.dependencyProxyImagePrefix" - class="gl-layout-w-limited" - data-testid="proxy-url" - > - <template #append> - <clipboard-button - :text="group.dependencyProxyImagePrefix" - :title="$options.i18n.copyImagePrefixText" - /> - </template> - </gl-form-input-group> - <template #description> - <span data-qa-selector="dependency_proxy_count" data-testid="proxy-count"> - <gl-sprintf :message="$options.i18n.blobCountAndSize"> - <template #count>{{ group.dependencyProxyBlobCount }}</template> - <template #size>{{ group.dependencyProxyTotalSize }}</template> - </gl-sprintf> - </span> - </template> - </gl-form-group> - <manifests-list v-if="manifests && manifests.length" :manifests="manifests" |