Fix disabled sections in the ui

This commit is contained in:
Owen
2026-08-17 14:53:20 -04:00
parent a74b0934fc
commit 76435440af
4 changed files with 0 additions and 27 deletions
@@ -450,7 +450,6 @@ export default function CreatePrivateResourcePage() {
)} )}
watch={asAnyWatch(form.watch)} watch={asAnyWatch(form.watch)}
labelPrefix="create" labelPrefix="create"
disabled={false}
/> />
</SettingsFormCell> </SettingsFormCell>
)} )}
@@ -598,7 +597,6 @@ export default function CreatePrivateResourcePage() {
)} )}
orgId={orgId} orgId={orgId}
watch={asAnyWatch(form.watch)} watch={asAnyWatch(form.watch)}
disabled={true}
labelPrefix="create" labelPrefix="create"
hideDomainPicker hideDomainPicker
/> />
@@ -627,7 +625,6 @@ export default function CreatePrivateResourcePage() {
setValue={asAnySetValue(form.setValue)} setValue={asAnySetValue(form.setValue)}
watch={asAnyWatch(form.watch)} watch={asAnyWatch(form.watch)}
orgId={orgId} orgId={orgId}
disabled={false}
selectedSites={selectedSites} selectedSites={selectedSites}
onSelectedSitesChange={setSelectedSites} onSelectedSitesChange={setSelectedSites}
labelPrefix="create" labelPrefix="create"
@@ -75,7 +75,6 @@ export default function RdpSettingsPage(props: {
orgId={params.orgId} orgId={params.orgId}
resource={resource} resource={resource}
updateResource={updateResource} updateResource={updateResource}
disabled={false}
targetsResponse={targetsResponse ?? { targets: [] }} targetsResponse={targetsResponse ?? { targets: [] }}
/> />
</SettingsContainer> </SettingsContainer>
@@ -85,13 +84,11 @@ export default function RdpSettingsPage(props: {
function RdpServerForm({ function RdpServerForm({
orgId, orgId,
resource, resource,
disabled,
targetsResponse targetsResponse
}: { }: {
orgId: string; orgId: string;
resource: GetResourceResponse; resource: GetResourceResponse;
updateResource: ResourceContextType["updateResource"]; updateResource: ResourceContextType["updateResource"];
disabled: boolean;
targetsResponse: ResourceTargetsResponse; targetsResponse: ResourceTargetsResponse;
}) { }) {
const t = useTranslations(); const t = useTranslations();
@@ -208,10 +205,6 @@ function RdpServerForm({
{t("rdpServerDescription")} {t("rdpServerDescription")}
</SettingsSectionDescription> </SettingsSectionDescription>
</SettingsSectionHeader> </SettingsSectionHeader>
<fieldset
disabled={disabled}
className={disabled ? "opacity-50 pointer-events-none" : ""}
>
<Form {...form}> <Form {...form}>
<SettingsSectionBody> <SettingsSectionBody>
<SettingsSectionForm variant="half"> <SettingsSectionForm variant="half">
@@ -237,7 +230,6 @@ function RdpServerForm({
</Button> </Button>
</form> </form>
</Form> </Form>
</fieldset>
</SettingsSection> </SettingsSection>
); );
} }
@@ -95,7 +95,6 @@ export default function SshSettingsPage(props: {
orgId={params.orgId} orgId={params.orgId}
resource={resource} resource={resource}
updateResource={updateResource} updateResource={updateResource}
disabled={false}
targetsResponse={targetsResponse ?? { targets: [] }} targetsResponse={targetsResponse ?? { targets: [] }}
/> />
</SettingsContainer> </SettingsContainer>
@@ -106,13 +105,11 @@ function SshServerForm({
orgId, orgId,
resource, resource,
updateResource, updateResource,
disabled,
targetsResponse targetsResponse
}: { }: {
orgId: string; orgId: string;
resource: GetResourceResponse; resource: GetResourceResponse;
updateResource: ResourceContextType["updateResource"]; updateResource: ResourceContextType["updateResource"];
disabled: boolean;
targetsResponse: ResourceTargetsResponse; targetsResponse: ResourceTargetsResponse;
}) { }) {
const t = useTranslations(); const t = useTranslations();
@@ -368,10 +365,6 @@ function SshServerForm({
{t("sshServerDescription")} {t("sshServerDescription")}
</SettingsSectionDescription> </SettingsSectionDescription>
</SettingsSectionHeader> </SettingsSectionHeader>
<fieldset
disabled={disabled}
className={disabled ? "opacity-50 pointer-events-none" : ""}
>
<Form {...form}> <Form {...form}>
<SettingsSectionBody> <SettingsSectionBody>
<SettingsSectionForm variant="half"> <SettingsSectionForm variant="half">
@@ -523,7 +516,6 @@ function SshServerForm({
</Button> </Button>
</form> </form>
</Form> </Form>
</fieldset>
</SettingsSection> </SettingsSection>
); );
} }
@@ -75,7 +75,6 @@ export default function VncSettingsPage(props: {
orgId={params.orgId} orgId={params.orgId}
resource={resource} resource={resource}
updateResource={updateResource} updateResource={updateResource}
disabled={true}
targetsResponse={targetsResponse ?? { targets: [] }} targetsResponse={targetsResponse ?? { targets: [] }}
/> />
</SettingsContainer> </SettingsContainer>
@@ -85,13 +84,11 @@ export default function VncSettingsPage(props: {
function VncServerForm({ function VncServerForm({
orgId, orgId,
resource, resource,
disabled,
targetsResponse targetsResponse
}: { }: {
orgId: string; orgId: string;
resource: GetResourceResponse; resource: GetResourceResponse;
updateResource: ResourceContextType["updateResource"]; updateResource: ResourceContextType["updateResource"];
disabled: boolean;
targetsResponse: ResourceTargetsResponse; targetsResponse: ResourceTargetsResponse;
}) { }) {
const t = useTranslations(); const t = useTranslations();
@@ -208,10 +205,6 @@ function VncServerForm({
{t("vncServerDescription")} {t("vncServerDescription")}
</SettingsSectionDescription> </SettingsSectionDescription>
</SettingsSectionHeader> </SettingsSectionHeader>
<fieldset
disabled={disabled}
className={disabled ? "opacity-50 pointer-events-none" : ""}
>
<Form {...form}> <Form {...form}>
<SettingsSectionBody> <SettingsSectionBody>
<SettingsSectionForm variant="half"> <SettingsSectionForm variant="half">
@@ -237,7 +230,6 @@ function VncServerForm({
</Button> </Button>
</form> </form>
</Form> </Form>
</fieldset>
</SettingsSection> </SettingsSection>
); );
} }