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>2021-01-14 09:11:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-14 09:11:16 +0300
commit298ae510cefeae8a8ffb9a868fefd9eceeac4122 (patch)
tree874a874b5d4117b97c9fd8475d76b9aa7dc966ce /app/assets/javascripts/pipeline_new
parent04698e448a10aedea2f3ed37ffd0327e9b91426e (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.vue15
1 files changed, 6 insertions, 9 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 d25c9a788e0..70c5713b216 100644
--- a/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
+++ b/app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
@@ -16,6 +16,7 @@ import {
GlSearchBoxByType,
GlSprintf,
GlLoadingIcon,
+ GlSafeHtmlDirective as SafeHtml,
} from '@gitlab/ui';
import * as Sentry from '~/sentry/wrapper';
import { s__, __, n__ } from '~/locale';
@@ -34,7 +35,7 @@ export default {
'Pipeline|Specify variable values to be used in this run. The values specified in %{linkStart}CI/CD settings%{linkEnd} will be used by default.',
),
formElementClasses: 'gl-mr-3 gl-mb-3 gl-flex-basis-quarter gl-flex-shrink-0 gl-flex-grow-0',
- errorTitle: __('The form contains the following error:'),
+ errorTitle: __('Pipeline cannot be run.'),
warningTitle: __('The form contains the following warning:'),
maxWarningsSummary: __('%{total} warnings found: showing first %{warningsDisplayed}'),
components: {
@@ -53,6 +54,7 @@ export default {
GlSprintf,
GlLoadingIcon,
},
+ directives: { SafeHtml },
props: {
pipelinesPath: {
type: String,
@@ -335,8 +337,9 @@ export default {
variant="danger"
class="gl-mb-4"
data-testid="run-pipeline-error-alert"
- >{{ error }}</gl-alert
>
+ <span v-safe-html="error"></span>
+ </gl-alert>
<gl-alert
v-if="shouldShowWarning"
:title="$options.warningTitle"
@@ -365,7 +368,7 @@ export default {
</p>
</details>
</gl-alert>
- <gl-form-group :label="s__('Pipeline|Run for')">
+ <gl-form-group :label="s__('Pipeline|Run for branch name or tag')">
<gl-dropdown :text="refShortName" block>
<gl-search-box-by-type v-model.trim="searchTerm" :placeholder="__('Search refs')" />
<gl-dropdown-section-header>{{ __('Branches') }}</gl-dropdown-section-header>
@@ -391,12 +394,6 @@ export default {
{{ tag.shortName }}
</gl-dropdown-item>
</gl-dropdown>
-
- <template #description>
- <div>
- {{ s__('Pipeline|Existing branch name or tag') }}
- </div></template
- >
</gl-form-group>
<gl-loading-icon v-if="isLoading" class="gl-mb-5" size="lg" />