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>2020-12-24 03:10:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-24 03:10:25 +0300
commitb2e2c43b3c5aebf47d7f6114b172551e4fa97e58 (patch)
tree5358eb8e4b7fa85f87f13524ab520b460a62ce24 /app/assets/javascripts/pipeline_new
parent5838993b5f3e2d861d9dd7c82dfeea71506b9fc2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pipeline_new')
-rw-r--r--app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue14
-rw-r--r--app/assets/javascripts/pipeline_new/utils/format_refs.js2
2 files changed, 8 insertions, 8 deletions
diff --git a/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue b/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
index f2d68054e80..d25c9a788e0 100644
--- a/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
+++ b/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
@@ -121,12 +121,12 @@ export default {
return this.searchTerm.toLowerCase();
},
filteredBranches() {
- return this.branches.filter(branch =>
+ return this.branches.filter((branch) =>
branch.shortName.toLowerCase().includes(this.lowerCasedSearchTerm),
);
},
filteredTags() {
- return this.tags.filter(tag =>
+ return this.tags.filter((tag) =>
tag.shortName.toLowerCase().includes(this.lowerCasedSearchTerm),
);
},
@@ -187,7 +187,7 @@ export default {
setVariable(refValue, type, key, value) {
const { variables } = this.form[refValue];
- const variable = variables.find(v => v.key === key);
+ const variable = variables.find((v) => v.key === key);
if (variable) {
variable.type = type;
variable.value = value;
@@ -270,11 +270,11 @@ export default {
stop(data);
}
})
- .catch(error => {
+ .catch((error) => {
stop(error);
});
}, CONFIG_VARIABLES_TIMEOUT)
- .then(data => {
+ .then((data) => {
const params = {};
const descriptions = {};
@@ -287,7 +287,7 @@ export default {
return { params, descriptions };
})
- .catch(error => {
+ .catch((error) => {
this.isLoading = false;
Sentry.captureException(error);
@@ -314,7 +314,7 @@ export default {
.then(({ data }) => {
redirectTo(`${this.pipelinesPath}/${data.id}`);
})
- .catch(err => {
+ .catch((err) => {
const { errors, warnings, total_warnings: totalWarnings } = err.response.data;
const [error] = errors;
this.error = error;
diff --git a/app/assets/javascripts/pipeline_new/utils/format_refs.js b/app/assets/javascripts/pipeline_new/utils/format_refs.js
index e217cd25413..f0fbc5ed7b6 100644
--- a/app/assets/javascripts/pipeline_new/utils/format_refs.js
+++ b/app/assets/javascripts/pipeline_new/utils/format_refs.js
@@ -3,7 +3,7 @@ import { BRANCH_REF_TYPE, TAG_REF_TYPE } from '../constants';
export default (refs, type) => {
let fullName;
- return refs.map(ref => {
+ return refs.map((ref) => {
if (type === BRANCH_REF_TYPE) {
fullName = `refs/heads/${ref}`;
} else if (type === TAG_REF_TYPE) {