diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-06 00:09:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-06 00:09:31 +0000 |
commit | a807e50ade2a78add0c13b75575203d7d99e8a4c (patch) | |
tree | d7f46077dca3d8d109962a6a76508c76ea0b61ba /app/assets | |
parent | 91264a675246bc77a83322a2eff560eeaba7ce9a (diff) | |
download | gitlab-ce-a807e50ade2a78add0c13b75575203d7d99e8a4c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/integrations/edit/components/integration_form.vue | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/app/assets/javascripts/integrations/edit/components/integration_form.vue b/app/assets/javascripts/integrations/edit/components/integration_form.vue index 7a6f1a953a8..3c07dee025f 100644 --- a/app/assets/javascripts/integrations/edit/components/integration_form.vue +++ b/app/assets/javascripts/integrations/edit/components/integration_form.vue @@ -108,6 +108,9 @@ export default { ? this.propsSource.fields.filter((field) => !field.section) : this.propsSource.fields; }, + hasFieldsWithoutSection() { + return this.fieldsWithoutSection.length; + }, }, methods: { ...mapActions(['setOverride', 'requestJiraIssueTypes']), @@ -227,6 +230,27 @@ export default { @change="setOverride" /> + <div v-if="!hasSections" class="row"> + <div class="col-lg-4"></div> + + <div class="col-lg-8"> + <!-- helpHtml is trusted input --> + <div v-if="helpHtml" v-safe-html:[$options.helpHtmlConfig]="helpHtml"></div> + + <active-checkbox + v-if="propsSource.showActive" + :key="`${currentKey}-active-checkbox`" + @toggle-integration-active="onToggleIntegrationState" + /> + <trigger-fields + v-if="propsSource.triggerEvents.length" + :key="`${currentKey}-trigger-fields`" + :events="propsSource.triggerEvents" + :type="propsSource.type" + /> + </div> + </div> + <template v-if="hasSections"> <div v-for="(section, index) in customState.sections" @@ -266,24 +290,10 @@ export default { </div> </template> - <div class="row"> + <div v-if="hasFieldsWithoutSection" class="row"> <div class="col-lg-4"></div> <div class="col-lg-8"> - <!-- helpHtml is trusted input --> - <div v-if="helpHtml && !hasSections" v-safe-html:[$options.helpHtmlConfig]="helpHtml"></div> - - <active-checkbox - v-if="propsSource.showActive && !hasSections" - :key="`${currentKey}-active-checkbox`" - @toggle-integration-active="onToggleIntegrationState" - /> - <trigger-fields - v-if="propsSource.triggerEvents.length && !hasSections" - :key="`${currentKey}-trigger-fields`" - :events="propsSource.triggerEvents" - :type="propsSource.type" - /> <dynamic-field v-for="field in fieldsWithoutSection" :key="`${currentKey}-${field.name}`" |