Commit 84925f49 authored by Justin Ho's avatar Justin Ho Committed by Tom Quirk

Clean up active and updated_at fields

parent 39f0069d
<script> <script>
import { GlTable } from '@gitlab/ui'; import { GlIcon, GlLink, GlTable } from '@gitlab/ui';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
export default { export default {
components: { components: {
GlIcon,
GlLink,
GlTable, GlTable,
TimeAgoTooltip,
}, },
props: { props: {
integrations: { integrations: {
...@@ -33,6 +37,17 @@ export default { ...@@ -33,6 +37,17 @@ export default {
</script> </script>
<template> <template>
<gl-table :items="integrations" :fields="$options.fields" /> <gl-table :items="integrations" :fields="$options.fields">
<!-- </gl-table> --> <template #cell(active)="{ item }">
<gl-icon v-if="item.active" name="check" class="gl-text-green-500" />
</template>
<template #cell(name)="{ item }">
<gl-link :href="item.edit_path" class="gl-font-weight-bold">{{ item.name }}</gl-link>
</template>
<template #cell(updated_at)="{ item }">
<time-ago-tooltip v-if="item.updated_at" :time="item.updated_at" />
</template>
</gl-table>
</template> </template>
...@@ -167,7 +167,8 @@ module ServicesHelper ...@@ -167,7 +167,8 @@ module ServicesHelper
active: integration.activated?, active: integration.activated?,
name: integration.title, name: integration.title,
description: integration.description, description: integration.description,
updated_at: integration.updated_at updated_at: integration.updated_at,
edit_path: scoped_edit_integration_path(integration)
} }
end end
end end
......
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