Skip to content

Commit

Permalink
Integration list not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom committed Nov 13, 2024
1 parent 1f1d43e commit feba619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
<div class="flex items-center gap-1.5">
<span>{{ status.tabs.text }}</span>
<div v-if="getIntegrationCountPerStatus[key] > 0" class="rounded py-0.5 px-1 text-tiny" :class="status.tabs.badge">
<div v-if="getIntegrationCountPerStatus[key] > 0" class="rounded py-0.5 px-1 text-tiny text-black" :class="status.tabs.badge">
{{ getIntegrationCountPerStatus[key] }}
</div>
</div>
Expand Down Expand Up @@ -82,6 +82,7 @@ const getIntegrationCountPerStatus = computed<Record<string, number>>(() => {
Object.entries(lfIntegrationStatusesTabs).forEach(([key, statusConfig]) => {
statusCount[key] = array.value.filter((integration) => statusConfig.show(integration)).length;
});
statusCount.notConnected = Object.keys(lfIntegrations).length - array.value.length;
return statusCount;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<lf-tab v-for="(config, key) in lfIntegrationStatusesTabs" :key="key" :name="key">
<div class="flex items-center gap-1.5">
<span>{{ config.tabs.text }}</span>
<div v-if="integrationStatusCount[key] > 0" class="rounded py-0.5 px-1 text-tiny" :class="config.tabs.badge">
<div v-if="integrationStatusCount[key] > 0" class="rounded py-0.5 px-1 text-tiny text-black" :class="config.tabs.badge">
{{ integrationStatusCount[key] }}
</div>
</div>
Expand Down

0 comments on commit feba619

Please sign in to comment.