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-11-10 12:08:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-10 12:08:45 +0300
commit01c201bc6a9b99e1f3095f4139110c6fd0cf7aa9 (patch)
tree7445a1fc4797d9f093c3b1352cf3889fadc6d967 /app/assets/javascripts/pipeline_new
parent552db97a0dfa486b751a808eb4e9fadc8b875e9c (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.vue11
1 files changed, 10 insertions, 1 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 20067f6646f..6552665100a 100644
--- a/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
+++ b/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
@@ -14,6 +14,7 @@ import {
GlDropdownItem,
GlSearchBoxByType,
GlSprintf,
+ GlLoadingIcon,
} from '@gitlab/ui';
import { s__, __, n__ } from '~/locale';
import axios from '~/lib/utils/axios_utils';
@@ -45,6 +46,7 @@ export default {
GlDropdownItem,
GlSearchBoxByType,
GlSprintf,
+ GlLoadingIcon,
},
props: {
pipelinesPath: {
@@ -96,6 +98,7 @@ export default {
warnings: [],
totalWarnings: 0,
isWarningDismissed: false,
+ isLoading: false,
};
},
computed: {
@@ -209,6 +212,8 @@ export default {
fetchConfigVariables(refValue) {
if (gon?.features?.newPipelineFormPrefilledVars) {
+ this.isLoading = true;
+
return axios
.get(this.configVariablesPath, {
params: {
@@ -226,6 +231,8 @@ export default {
}
});
+ this.isLoading = false;
+
return { params, descriptions };
});
}
@@ -324,7 +331,9 @@ export default {
>
</gl-form-group>
- <gl-form-group :label="s__('Pipeline|Variables')">
+ <gl-loading-icon v-if="isLoading" class="gl-mb-5" size="lg" />
+
+ <gl-form-group v-else :label="s__('Pipeline|Variables')">
<div
v-for="(variable, index) in variables"
:key="variable.uniqueId"