mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 16:26:39 +00:00
Update ui
This commit is contained in:
@@ -51,6 +51,7 @@ import {
|
|||||||
import { ChevronDown } from "lucide-react";
|
import { ChevronDown } from "lucide-react";
|
||||||
import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext";
|
import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext";
|
||||||
import { useSubscriptionStatusContext } from "@app/hooks/useSubscriptionStatusContext";
|
import { useSubscriptionStatusContext } from "@app/hooks/useSubscriptionStatusContext";
|
||||||
|
import { Alert, AlertDescription } from "@app/components/ui/alert";
|
||||||
|
|
||||||
// Schema for general organization settings
|
// Schema for general organization settings
|
||||||
const GeneralFormSchema = z.object({
|
const GeneralFormSchema = z.object({
|
||||||
@@ -288,15 +289,6 @@ export default function GeneralPage() {
|
|||||||
</SettingsSectionDescription>
|
</SettingsSectionDescription>
|
||||||
</SettingsSectionHeader>
|
</SettingsSectionHeader>
|
||||||
<SettingsSectionBody>
|
<SettingsSectionBody>
|
||||||
{/* {build === "saas" && !subscription?.subscribed ? (
|
|
||||||
<Alert variant="info" className="mb-6">
|
|
||||||
<AlertDescription>
|
|
||||||
{t("orgAuthPageDisabled")}{" "}
|
|
||||||
{t("subscriptionRequiredToUse")}
|
|
||||||
</AlertDescription>
|
|
||||||
</Alert>
|
|
||||||
) : null} */}
|
|
||||||
|
|
||||||
<SettingsSectionForm>
|
<SettingsSectionForm>
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
@@ -355,6 +347,32 @@ export default function GeneralPage() {
|
|||||||
|
|
||||||
{build != "oss" && (
|
{build != "oss" && (
|
||||||
<>
|
<>
|
||||||
|
{build == "saas" &&
|
||||||
|
!subscription?.subscribed ? (
|
||||||
|
<Alert
|
||||||
|
variant="info"
|
||||||
|
className="mb-6"
|
||||||
|
>
|
||||||
|
<AlertDescription>
|
||||||
|
{t(
|
||||||
|
"subscriptionRequiredToUse"
|
||||||
|
)}
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
) : null}
|
||||||
|
|
||||||
|
{build == "enterprise" &&
|
||||||
|
!isUnlocked() ? (
|
||||||
|
<Alert
|
||||||
|
variant="info"
|
||||||
|
className="mb-6"
|
||||||
|
>
|
||||||
|
<AlertDescription>
|
||||||
|
{t("licenseRequiredToUse")}
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
) : null}
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="settingsLogRetentionDaysAccess"
|
name="settingsLogRetentionDaysAccess"
|
||||||
|
|||||||
Reference in New Issue
Block a user