Skip to content
Snippets Groups Projects

Part 3: Abstract pipeline_variables_form to its own component - clean up

Merged Briley Sandlin requested to merge 520831-remove-redundant-code into master
All threads resolved!
4 files
+ 19
40
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -13,13 +13,12 @@ import RefsDropdown from './refs_dropdown.vue';
import PipelineVariablesForm from './pipeline_variables_form.vue';
const i18n = {
configButtonTitle: s__('Pipelines|Go to the pipeline editor'),
defaultError: __('Something went wrong on our end. Please try again.'),
maxWarningsSummary: __('%{total} warnings found: showing first %{warningsDisplayed}'),
refsLoadingErrorTitle: s__('Pipeline|Branches or tags could not be loaded.'),
submitErrorTitle: s__('Pipeline|Pipeline cannot be run.'),
configButtonTitle: s__('Pipelines|Go to the pipeline editor'),
warningTitle: __('The form contains the following warning:'),
maxWarningsSummary: __('%{total} warnings found: showing first %{warningsDisplayed}'),
pipelineAriaLabel: s__('Pipeline|Variable'),
};
export default {
@@ -120,6 +119,9 @@ export default {
overMaxWarningsLimit() {
return this.totalWarnings > this.maxWarnings;
},
refFullName() {
return this.refValue.fullName;
},
refShortName() {
return this.refValue.shortName;
},
@@ -140,7+142,7 @@
const {
data: {
pipelineCreate: { errors, pipeline },
},
} = await this.$apollo.mutate({
mutation: createPipelineMutation,
variables: {
@@ -254,7+256,7 @@
</gl-form-group>
<pipeline-inputs-form v-if="isPipelineInputsFeatureAvailable" />
<pipeline-variables-form
:default-branch="defaultBranch"
:file-params="fileParams"
:is-maintainer="isMaintainer"
:project-path="projectPath"
:ref-param="refParam"
:ref-param="refFullName"
:settings-link="settingsLink"
:variable-params="variableParams"
@variables-updated="handleVariablesUpdated"
Loading