backport disable autocomplete
This commit is contained in:
parent
9fefb6c2be
commit
fab9244c26
|
@ -34,6 +34,11 @@ export default {
|
||||||
required: false,
|
required: false,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
enableAutocomplete: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
issuableRef: {
|
issuableRef: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -240,6 +245,7 @@ export default {
|
||||||
:project-namespace="projectNamespace"
|
:project-namespace="projectNamespace"
|
||||||
:show-delete-button="showDeleteButton"
|
:show-delete-button="showDeleteButton"
|
||||||
:can-attach-file="canAttachFile"
|
:can-attach-file="canAttachFile"
|
||||||
|
:enable-autocomplete="enableAutocomplete"
|
||||||
/>
|
/>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<title-component
|
<title-component
|
||||||
|
|
|
@ -22,6 +22,11 @@
|
||||||
required: false,
|
required: false,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
enableAutocomplete: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
markdownField,
|
markdownField,
|
||||||
|
@ -42,7 +47,9 @@
|
||||||
<markdown-field
|
<markdown-field
|
||||||
:markdown-preview-path="markdownPreviewPath"
|
:markdown-preview-path="markdownPreviewPath"
|
||||||
:markdown-docs-path="markdownDocsPath"
|
:markdown-docs-path="markdownDocsPath"
|
||||||
:can-attach-file="canAttachFile">
|
:can-attach-file="canAttachFile"
|
||||||
|
:enable-autocomplete="enableAutocomplete"
|
||||||
|
>
|
||||||
<textarea
|
<textarea
|
||||||
id="issue-description"
|
id="issue-description"
|
||||||
class="note-textarea js-gfm-input js-autosize markdown-area"
|
class="note-textarea js-gfm-input js-autosize markdown-area"
|
||||||
|
|
|
@ -46,6 +46,11 @@
|
||||||
required: false,
|
required: false,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
enableAutocomplete: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
lockedWarning,
|
lockedWarning,
|
||||||
|
@ -89,7 +94,9 @@
|
||||||
:form-state="formState"
|
:form-state="formState"
|
||||||
:markdown-preview-path="markdownPreviewPath"
|
:markdown-preview-path="markdownPreviewPath"
|
||||||
:markdown-docs-path="markdownDocsPath"
|
:markdown-docs-path="markdownDocsPath"
|
||||||
:can-attach-file="canAttachFile" />
|
:can-attach-file="canAttachFile"
|
||||||
|
:enable-autocomplete="enableAutocomplete"
|
||||||
|
/>
|
||||||
<edit-actions
|
<edit-actions
|
||||||
:form-state="formState"
|
:form-state="formState"
|
||||||
:can-destroy="canDestroy"
|
:can-destroy="canDestroy"
|
||||||
|
|
|
@ -30,6 +30,11 @@
|
||||||
required: false,
|
required: false,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
enableAutocomplete: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -97,7 +102,7 @@
|
||||||
/*
|
/*
|
||||||
GLForm class handles all the toolbar buttons
|
GLForm class handles all the toolbar buttons
|
||||||
*/
|
*/
|
||||||
return new GLForm($(this.$refs['gl-form']), true);
|
return new GLForm($(this.$refs['gl-form']), this.enableAutocomplete);
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
const glForm = $(this.$refs['gl-form']).data('gl-form');
|
const glForm = $(this.$refs['gl-form']).data('gl-form');
|
||||||
|
|
Loading…
Reference in New Issue