Commit 1484656e authored by Justin Ho's avatar Justin Ho Committed by Tom Quirk

Split tables into active / inactive

parent 84925f49
...@@ -14,8 +14,10 @@ export default { ...@@ -14,8 +14,10 @@ export default {
}, },
computed: { computed: {
activeIntegrations() { activeIntegrations() {
// TODO filter return this.integrations.filter((integration) => integration.active);
return this.integrations; },
inactiveIntegrations() {
return this.integrations.filter((integration) => !integration.active);
}, },
}, },
}; };
...@@ -24,6 +26,7 @@ export default { ...@@ -24,6 +26,7 @@ export default {
<template> <template>
<div> <div>
<integrations-table :integrations="activeIntegrations" /> <integrations-table :integrations="activeIntegrations" />
<div>{{ integrations }}</div> <h5>{{ s__('Integrations|Add an integration') }}</h5>
<integrations-table :integrations="inactiveIntegrations" />
</div> </div>
</template> </template>
<script> <script>
import { GlIcon, GlLink, GlTable } from '@gitlab/ui'; import { GlIcon, GlLink, GlTable } from '@gitlab/ui';
import { __ } from '~/locale';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
export default { export default {
...@@ -22,15 +23,15 @@ export default { ...@@ -22,15 +23,15 @@ export default {
}, },
{ {
key: 'name', key: 'name',
label: 'Integration', label: __('Integration'),
}, },
{ {
key: 'description', key: 'description',
label: 'Description', label: __('Description'),
}, },
{ {
key: 'updated_at', key: 'updated_at',
label: 'Last edit', label: __('Last updated'),
}, },
], ],
}; };
......
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