diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-14 21:09:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-14 21:09:54 +0300 |
commit | f697dc5e76dfc5894df006d53b2b7e751653cf05 (patch) | |
tree | 1387cd225039e611f3683f96b318bb17d4c422cb /app/assets/javascripts/ci_variable_list | |
parent | 874ead9c3a50de4c4ca4551eaf5b7eb976d26b50 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ci_variable_list')
-rw-r--r-- | app/assets/javascripts/ci_variable_list/components/ci_variable_modal.vue | 16 | ||||
-rw-r--r-- | app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue | 7 |
2 files changed, 11 insertions, 12 deletions
diff --git a/app/assets/javascripts/ci_variable_list/components/ci_variable_modal.vue b/app/assets/javascripts/ci_variable_list/components/ci_variable_modal.vue index 32fe841f16e..316408adfb2 100644 --- a/app/assets/javascripts/ci_variable_list/components/ci_variable_modal.vue +++ b/app/assets/javascripts/ci_variable_list/components/ci_variable_modal.vue @@ -65,12 +65,6 @@ export default { modalActionText() { return this.variableBeingEdited ? __('Update variable') : __('Add variable'); }, - primaryAction() { - return { - text: this.modalActionText, - attributes: { variant: 'success', disabled: !this.canSubmit }, - }; - }, maskedFeedback() { return __('This variable can not be masked'); }, @@ -120,6 +114,8 @@ export default { ref="modal" :modal-id="$options.modalId" :title="modalActionText" + static + lazy @hidden="resetModalHandler" > <form> @@ -127,7 +123,7 @@ export default { <gl-form-input id="ci-variable-key" v-model="variableData.key" - data-qa-selector="variable_key" + data-qa-selector="ci_variable_key_field" /> </gl-form-group> @@ -142,7 +138,7 @@ export default { v-model="variableData.secret_value" rows="3" max-rows="6" - data-qa-selector="variable_value" + data-qa-selector="ci_variable_value_field" /> </gl-form-group> @@ -189,7 +185,7 @@ export default { <gl-form-checkbox ref="masked-ci-variable" v-model="variableData.masked" - data-qa-selector="variable_masked" + data-qa-selector="ci_variable_masked_checkbox" > {{ __('Mask variable') }} <gl-link href="/help/ci/variables/README#masked-variables"> @@ -218,6 +214,7 @@ export default { ref="deleteCiVariable" category="secondary" variant="danger" + data-qa-selector="ci_variable_delete_button" @click="deleteVarAndClose" >{{ __('Delete variable') }}</gl-deprecated-button > @@ -225,6 +222,7 @@ export default { ref="updateOrAddVariable" :disabled="!canSubmit" variant="success" + data-qa-selector="ci_variable_save_button" @click="updateOrAddVariable" >{{ modalActionText }} </gl-deprecated-button> diff --git a/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue b/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue index b374d950c1f..7eb791f97e4 100644 --- a/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue +++ b/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue @@ -26,7 +26,6 @@ export default { { key: 'value', label: s__('CiVariables|Value'), - tdClass: 'qa-ci-variable-input-value', customStyle: { width: '40%' }, }, { @@ -89,6 +88,7 @@ export default { :fields="fields" :items="variables" tbody-tr-class="js-ci-variable-row" + data-qa-selector="ci_variable_table_content" sort-by="key" sort-direction="asc" stacked="lg" @@ -150,6 +150,7 @@ export default { <gl-deprecated-button ref="edit-ci-variable" v-gl-modal-directive="$options.modalId" + data-qa-selector="edit_ci_variable_button" @click="editVariable(item)" > <gl-icon :size="$options.iconSize" name="pencil" /> @@ -168,7 +169,7 @@ export default { <gl-deprecated-button v-if="tableIsNotEmpty" ref="secret-value-reveal-button" - data-qa-selector="reveal_ci_variable_value" + data-qa-selector="reveal_ci_variable_value_button" class="append-right-8" @click="toggleValues(!valuesHidden)" >{{ valuesButtonText }}</gl-deprecated-button @@ -176,7 +177,7 @@ export default { <gl-deprecated-button ref="add-ci-variable" v-gl-modal-directive="$options.modalId" - data-qa-selector="add_ci_variable" + data-qa-selector="add_ci_variable_button" variant="success" >{{ __('Add Variable') }}</gl-deprecated-button > |