1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

fix(app): improve resource quota error handling [EE-5933] (#10951)

This commit is contained in:
Ali 2024-01-15 13:29:35 +13:00 committed by GitHub
parent 488fcc7cc5
commit 6d71a28584
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 122 additions and 50 deletions

View file

@ -1,36 +0,0 @@
import { BoxSelector } from '@@/BoxSelector';
import { FormSection } from '@@/form-components/FormSection';
import { TextTip } from '@@/Tip/TextTip';
import { DeploymentType } from '../types';
import { getDeploymentOptions } from './deploymentOptions';
interface Props {
value: DeploymentType;
onChange(value: DeploymentType): void;
supportGlobalDeployment: boolean;
}
export function AppDeploymentTypeFormSection({
supportGlobalDeployment,
value,
onChange,
}: Props) {
const options = getDeploymentOptions(supportGlobalDeployment);
return (
<FormSection title="Deployment">
<TextTip color="blue">
Select how you want to deploy your application inside the cluster.
</TextTip>
<BoxSelector
slim
options={options}
value={value}
onChange={onChange}
radioName="deploymentType"
/>
</FormSection>
);
}