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>
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