mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-14 07:41:30 +08:00
feat: show RPS message only if user is on trail and trail is not converted to sub (#5860)
* feat: show rps message only if user is on trail and trail is not converted to sub * feat: show rps message only if user is on trail and trail is not converted to sub
This commit is contained in:
parent
266894b0f8
commit
23704b00ce
@ -69,7 +69,12 @@ function ServiceMetricTable({
|
|||||||
const [RPS, setRPS] = useState(0);
|
const [RPS, setRPS] = useState(0);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isFetching && licenseData?.payload?.onTrial && isCloudUserVal) {
|
if (
|
||||||
|
!isFetching &&
|
||||||
|
licenseData?.payload?.onTrial &&
|
||||||
|
!licenseData?.payload?.trialConvertedToSubscription &&
|
||||||
|
isCloudUserVal
|
||||||
|
) {
|
||||||
if (services.length > 0) {
|
if (services.length > 0) {
|
||||||
const rps = getTotalRPS(services);
|
const rps = getTotalRPS(services);
|
||||||
setRPS(rps);
|
setRPS(rps);
|
||||||
|
@ -26,7 +26,12 @@ function ServiceTraceTable({
|
|||||||
const tableColumns = useMemo(() => getColumns(search, false), [search]);
|
const tableColumns = useMemo(() => getColumns(search, false), [search]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isFetching && licenseData?.payload?.onTrial && isCloudUserVal) {
|
if (
|
||||||
|
!isFetching &&
|
||||||
|
licenseData?.payload?.onTrial &&
|
||||||
|
!licenseData?.payload?.trialConvertedToSubscription &&
|
||||||
|
isCloudUserVal
|
||||||
|
) {
|
||||||
if (services.length > 0) {
|
if (services.length > 0) {
|
||||||
const rps = getTotalRPS(services);
|
const rps = getTotalRPS(services);
|
||||||
setRPS(rps);
|
setRPS(rps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user