Commit 9b9c4939 authored by Jannik Lehmann's avatar Jannik Lehmann

Replace GlTable with GlTableLite for vulnerabilites over time

parent 347a44a5
<script> <script>
import { GlTooltipDirective, GlTable, GlLoadingIcon } from '@gitlab/ui'; import { GlTooltipDirective, GlTableLite, GlLoadingIcon } from '@gitlab/ui';
import { GlSparklineChart } from '@gitlab/ui/dist/charts'; import { GlSparklineChart } from '@gitlab/ui/dist/charts';
import { SEVERITY_LEVELS, DAYS } from 'ee/security_dashboard/store/constants'; import { SEVERITY_LEVELS, DAYS } from 'ee/security_dashboard/store/constants';
import SeverityBadge from 'ee/vue_shared/security_reports/components/severity_badge.vue'; import SeverityBadge from 'ee/vue_shared/security_reports/components/severity_badge.vue';
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
components: { components: {
ChartButtons, ChartButtons,
GlSparklineChart, GlSparklineChart,
GlTable, GlTableLite,
GlLoadingIcon, GlLoadingIcon,
SeverityBadge, SeverityBadge,
}, },
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
</div> </div>
<gl-loading-icon v-if="isLoadingHistory" size="lg" class="gl-my-12" /> <gl-loading-icon v-if="isLoadingHistory" size="lg" class="gl-my-12" />
<gl-table <gl-table-lite
v-else v-else
:fields="$options.fields" :fields="$options.fields"
:items="charts" :items="charts"
...@@ -244,6 +244,6 @@ export default { ...@@ -244,6 +244,6 @@ export default {
<template #cell(currentVulnerabilitiesCount)="{ value }"> <template #cell(currentVulnerabilitiesCount)="{ value }">
<span ref="currentVulnerabilitiesCount">{{ value }}</span> <span ref="currentVulnerabilitiesCount">{{ value }}</span>
</template> </template>
</gl-table> </gl-table-lite>
</section> </section>
</template> </template>
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