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:
parent
488fcc7cc5
commit
6d71a28584
9 changed files with 122 additions and 50 deletions
|
@ -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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue