remediated_badge.vue 723 Bytes
Newer Older
1
<script>
Mark Florian's avatar
Mark Florian committed
2
import { GlDeprecatedBadge as GlBadge, GlPopover } from '@gitlab/ui';
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

export default {
  name: 'RemediatedBadge',
  components: {
    GlBadge,
    GlPopover,
  },
};
</script>

<template>
  <div class="d-inline-block">
    <gl-badge ref="badge" variant="info">{{ __('Remediated: needs review') }}</gl-badge>
    <gl-popover
      ref="popover"
      :content="
        __(
          'The vulnerability is no longer detected. Verify the vulnerability has been fixed or removed before changing its status.',
        )
      "
      :target="() => $refs.badge.$el"
      :title="__('Vulnerability remediated. Review before resolving.')"
      placement="top"
      triggers="hover focus"
    />
  </div>
</template>