Made active parameter counter include existing 'my variables'

This commit is contained in:
Jason Casareno
2022-08-12 15:49:42 -07:00
parent fc15a5a1e4
commit 924d6a87d0

View File

@@ -7,7 +7,7 @@
<SmartTab
:id="'params'"
:label="`${$t('tab.parameters')}`"
:info="`${newActiveParamsCount$}`"
:info="`${Number(newActiveParamsCount$) + Number(newActiveVarsCount$)}`"
>
<HttpParameters />
</SmartTab>
@@ -50,6 +50,7 @@ import { useReadonlyStream } from "~/helpers/utils/composables"
import {
restActiveHeadersCount$,
restActiveParamsCount$,
restActiveVarsCount$,
usePreRequestScript,
useTestScript,
} from "~/newstore/RESTSession"
@@ -76,6 +77,16 @@ const newActiveParamsCount$ = useReadonlyStream(
null
)
const newActiveVarsCount$ = useReadonlyStream(
restActiveVarsCount$.pipe(
map((e) => {
if (e === 0) return null
return `${e}`
})
),
null
)
const newActiveHeadersCount$ = useReadonlyStream(
restActiveHeadersCount$.pipe(
map((e) => {