Commit 717dd09f authored by Kyle Mann's avatar Kyle Mann Committed by Mark Florian

Remove deprecated button from vulnerability page

Addresses https://gitlab.com/gitlab-org/gitlab/-/issues/219765.
parent 5a268044
<script> <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 EventItem from 'ee/vue_shared/security_reports/components/event_item.vue';
import { deprecatedCreateFlash as createFlash } from '~/flash'; import { deprecatedCreateFlash as createFlash } from '~/flash';
import { __, s__ } from '~/locale'; import { __, s__ } from '~/locale';
...@@ -8,7 +8,6 @@ import HistoryCommentEditor from './history_comment_editor.vue'; ...@@ -8,7 +8,6 @@ import HistoryCommentEditor from './history_comment_editor.vue';
export default { export default {
components: { components: {
GlDeprecatedButton,
GlButton, GlButton,
EventItem, EventItem,
HistoryCommentEditor, HistoryCommentEditor,
...@@ -180,8 +179,13 @@ export default { ...@@ -180,8 +179,13 @@ export default {
</event-item> </event-item>
<div v-else class="discussion-reply-holder"> <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') }} {{ s__('vulnerability|Add a comment') }}
</gl-deprecated-button> </button>
</div> </div>
</template> </template>
...@@ -64,7 +64,7 @@ describe('History Comment', () => { ...@@ -64,7 +64,7 @@ describe('History Comment', () => {
// whichever one exists and click it to show the editor. // whichever one exists and click it to show the editor.
const showEditView = () => { const showEditView = () => {
if (addCommentButton().exists()) { if (addCommentButton().exists()) {
addCommentButton().vm.$emit('click'); addCommentButton().trigger('click');
} else { } else {
editButton().vm.$emit('click'); 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