Skip to content

Commit

Permalink
feat: connections count
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso committed Dec 7, 2024
1 parent 6a38eb4 commit 2a5440e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/sidebar/ConnectionCtrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
role="tab"
:class="twMerge('tab', connectionTabShow === CONNECTION_TAB_TYPE.ACTIVE && 'tab-active')"
@click="() => (connectionTabShow = CONNECTION_TAB_TYPE.ACTIVE)"
>{{ $t('activeConnections') }}</a
>{{ $t('activeConnections') }}({{ renderConnections.length }})</a
>
<a
role="tab"
:class="twMerge('tab', connectionTabShow === CONNECTION_TAB_TYPE.CLOSED && 'tab-active')"
@click="() => (connectionTabShow = CONNECTION_TAB_TYPE.CLOSED)"
>{{ $t('closedConnections') }}</a
>{{ $t('closedConnections') }}({{ closedConnections.length }})</a
>
</div>
<div
Expand Down Expand Up @@ -113,6 +113,7 @@ import { disconnectByIdAPI } from '@/api'
import { CONNECTION_TAB_TYPE, SORT_TYPE } from '@/config'
import { getIPLabelFromMap } from '@/helper'
import {
closedConnections,
connectionFilter,
connectionSortType,
connectionTabShow,
Expand Down

0 comments on commit 2a5440e

Please sign in to comment.