Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 00:13:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 00:13:43 +0300
commit0302293341e9481507236824a8ef14525982e4bb (patch)
tree70bf7ca6fa5d5f6bf8fddca52c8b0a4ff95ec8ac /app/assets/javascripts/pipelines
parent9134da04883fb17a8636cddbd457210fa8f5ab38 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pipelines')
-rw-r--r--app/assets/javascripts/pipelines/components/pipelines_list/pipeline_multi_actions.vue11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/assets/javascripts/pipelines/components/pipelines_list/pipeline_multi_actions.vue b/app/assets/javascripts/pipelines/components/pipelines_list/pipeline_multi_actions.vue
index 2d2f649f651..73a255f392b 100644
--- a/app/assets/javascripts/pipelines/components/pipelines_list/pipeline_multi_actions.vue
+++ b/app/assets/javascripts/pipelines/components/pipelines_list/pipeline_multi_actions.vue
@@ -55,6 +55,9 @@ export default {
};
},
computed: {
+ hasArtifacts() {
+ return this.artifacts.length > 0;
+ },
filteredArtifacts() {
return this.searchQuery.length > 0
? fuzzaldrinPlus.filter(this.artifacts, this.searchQuery, { key: 'name' })
@@ -86,7 +89,9 @@ export default {
});
},
handleDropdownShown() {
- this.$refs.searchInput.focusInput();
+ if (this.hasArtifacts) {
+ this.$refs.searchInput.focusInput();
+ }
},
},
};
@@ -112,12 +117,12 @@ export default {
<gl-loading-icon v-else-if="isLoading" size="sm" />
- <gl-dropdown-item v-else-if="!artifacts.length" data-testid="artifacts-empty-message">
+ <gl-dropdown-item v-else-if="!hasArtifacts" data-testid="artifacts-empty-message">
{{ $options.i18n.emptyArtifactsMessage }}
</gl-dropdown-item>
<template #header>
- <gl-search-box-by-type v-if="artifacts.length" ref="searchInput" v-model.trim="searchQuery" />
+ <gl-search-box-by-type v-if="hasArtifacts" ref="searchInput" v-model.trim="searchQuery" />
</template>
<gl-dropdown-item