Commit aaae63b6 authored by Mark Florian's avatar Mark Florian

Merge branch...

Merge branch '219765-replace-gl-deprecated-button-with-gl-button-in-ee-app-assets-javascripts-vulnerabilities' into 'master'

Add form input field

Closes #219765

See merge request gitlab-org/gitlab!40837
parents bea3b85e 717dd09f
<script>
import { GlDeprecatedButton, GlButton, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { GlButton, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import EventItem from 'ee/vue_shared/security_reports/components/event_item.vue';
import { deprecatedCreateFlash as createFlash } from '~/flash';
import { __, s__ } from '~/locale';
......@@ -8,7 +8,6 @@ import HistoryCommentEditor from './history_comment_editor.vue';
export default {
components: {
GlDeprecatedButton,
GlButton,
EventItem,
HistoryCommentEditor,
......@@ -180,8 +179,13 @@ export default {
</event-item>
<div v-else class="discussion-reply-holder">
<gl-deprecated-button ref="addCommentButton" class="btn-text-field" @click="showCommentInput">
<button
ref="addCommentButton"
class="btn btn-text-field"
type="button"
@click="showCommentInput"
>
{{ s__('vulnerability|Add a comment') }}
</gl-deprecated-button>
</button>
</div>
</template>
......@@ -64,7 +64,7 @@ describe('History Comment', () => {
// whichever one exists and click it to show the editor.
const showEditView = () => {
if (addCommentButton().exists()) {
addCommentButton().vm.$emit('click');
addCommentButton().trigger('click');
} else {
editButton().vm.$emit('click');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment