mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-08 03:36:37 +00:00
Dont restrict numbers outside of the cloud
This commit is contained in:
@@ -44,7 +44,6 @@ import { PaidFeaturesAlert } from "@app/components/PaidFeaturesAlert";
|
|||||||
import { usePaidStatus } from "@app/hooks/usePaidStatus";
|
import { usePaidStatus } from "@app/hooks/usePaidStatus";
|
||||||
import type { OrgContextType } from "@app/contexts/orgContext";
|
import type { OrgContextType } from "@app/contexts/orgContext";
|
||||||
import { tierMatrix } from "@server/lib/billing/tierMatrix";
|
import { tierMatrix } from "@server/lib/billing/tierMatrix";
|
||||||
import { isAppPageRouteDefinition } from "next/dist/server/route-definitions/app-page-route-definition";
|
|
||||||
|
|
||||||
// Session length options in hours
|
// Session length options in hours
|
||||||
const SESSION_LENGTH_OPTIONS = [
|
const SESSION_LENGTH_OPTIONS = [
|
||||||
@@ -219,6 +218,10 @@ function LogRetentionSectionForm({ org }: SectionFormProps) {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
{LOG_RETENTION_OPTIONS.filter(
|
{LOG_RETENTION_OPTIONS.filter(
|
||||||
(option) => {
|
(option) => {
|
||||||
|
if (build != "saas") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
let maxDays: number;
|
let maxDays: number;
|
||||||
|
|
||||||
if (!subscriptionTier) {
|
if (!subscriptionTier) {
|
||||||
@@ -314,6 +317,10 @@ function LogRetentionSectionForm({ org }: SectionFormProps) {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
{LOG_RETENTION_OPTIONS.filter(
|
{LOG_RETENTION_OPTIONS.filter(
|
||||||
(option) => {
|
(option) => {
|
||||||
|
if (build != "saas") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
let maxDays: number;
|
let maxDays: number;
|
||||||
|
|
||||||
if (!subscriptionTier) {
|
if (!subscriptionTier) {
|
||||||
@@ -411,6 +418,10 @@ function LogRetentionSectionForm({ org }: SectionFormProps) {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
{LOG_RETENTION_OPTIONS.filter(
|
{LOG_RETENTION_OPTIONS.filter(
|
||||||
(option) => {
|
(option) => {
|
||||||
|
if (build != "saas") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
let maxDays: number;
|
let maxDays: number;
|
||||||
|
|
||||||
if (!subscriptionTier) {
|
if (!subscriptionTier) {
|
||||||
|
|||||||
Reference in New Issue
Block a user