Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-5215 move form component #2815

Merged
merged 3 commits into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,47 +81,47 @@ export const ServerConfigurationPage: AdministrationItemContentComponent = obser
}

return (
<Form ref={focusedRef} name="server_config" contents onChange={handleChange}>
<ColoredContainer vertical wrap gap parent>
{!configurationWizard && (
<Group box keepSize>
<ToolsPanel rounded>
<ToolsAction
title={translate('administration_configuration_tools_save_tooltip')}
icon="admin-save"
viewBox="0 0 24 24"
disabled={!changed}
onClick={save}
>
{translate('ui_processing_save')}
</ToolsAction>
<ToolsAction
title={translate('administration_configuration_tools_cancel_tooltip')}
icon="admin-cancel"
viewBox="0 0 24 24"
disabled={!changed}
onClick={reset}
>
{translate('ui_processing_cancel')}
</ToolsAction>
</ToolsPanel>
<ColoredContainer vertical wrap gap parent>
{!configurationWizard && (
<Group box keepSize>
<ToolsPanel rounded>
<ToolsAction
title={translate('administration_configuration_tools_save_tooltip')}
icon="admin-save"
viewBox="0 0 24 24"
disabled={!changed}
onClick={save}
>
{translate('ui_processing_save')}
</ToolsAction>
<ToolsAction
title={translate('administration_configuration_tools_cancel_tooltip')}
icon="admin-cancel"
viewBox="0 0 24 24"
disabled={!changed}
onClick={reset}
>
{translate('ui_processing_cancel')}
</ToolsAction>
</ToolsPanel>
</Group>
)}

<Container overflow gap wrap>
{configurationWizard && (
<Group form>
<GroupItem>
<h3>{translate('administration_configuration_wizard_configuration_title')}</h3>
</GroupItem>
<GroupItem>
<p className={s(styles, { message: true })}>{translate('administration_configuration_wizard_configuration_message')}</p>
</GroupItem>
</Group>
)}

<Container overflow gap wrap>
{configurationWizard && (
<Group form>
<GroupItem>
<h3>{translate('administration_configuration_wizard_configuration_title')}</h3>
</GroupItem>
<GroupItem>
<p className={s(styles, { message: true })}>{translate('administration_configuration_wizard_configuration_message')}</p>
</GroupItem>
</Group>
)}
<Loader state={service}>
{() => (
<Loader className={s(styles, { loader: true })} suspense>
<Loader state={service}>
{() => (
<Loader className={s(styles, { loader: true })} suspense>
<Form ref={focusedRef} name="server_config" contents onChange={handleChange}>
<Container wrap gap grid medium>
<ServerConfigurationInfoForm state={service.state} />
<Group form gap>
Expand All @@ -135,11 +135,11 @@ export const ServerConfigurationPage: AdministrationItemContentComponent = obser
<ServerConfigurationSecurityForm serverConfig={service.state.serverConfig} />
<ServerConfigurationDriversForm serverConfig={service.state.serverConfig} />
</Container>
</Loader>
)}
</Loader>
</Container>
</ColoredContainer>
</Form>
</Form>
</Loader>
)}
</Loader>
</Container>
</ColoredContainer>
);
});
Loading