003a90c235
Remove always-false isBE branches, BE-only teaser controls and the now-dead imports across the Docker, Kubernetes and Edge-stack React views. CE behaviour is preserved; only the Business Edition branches, teasers and BE-only (non-functional) controls are removed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
43 lines
963 B
TypeScript
43 lines
963 B
TypeScript
import { useEnvironmentId } from '@/react/hooks/useEnvironmentId';
|
|
import { useUnauthorizedRedirect } from '@/react/hooks/useUnauthorizedRedirect';
|
|
|
|
import { PageHeader } from '@@/PageHeader';
|
|
|
|
import { CreateNamespaceForm } from './CreateNamespaceForm';
|
|
|
|
export function CreateNamespaceView() {
|
|
const environmentId = useEnvironmentId();
|
|
|
|
useUnauthorizedRedirect(
|
|
{
|
|
authorizations: 'K8sResourcePoolsW',
|
|
adminOnlyCE: true,
|
|
},
|
|
{
|
|
to: 'kubernetes.resourcePools',
|
|
params: {
|
|
id: environmentId,
|
|
},
|
|
}
|
|
);
|
|
|
|
return (
|
|
<div className="form-horizontal">
|
|
<PageHeader
|
|
title="Create a namespace"
|
|
breadcrumbs={[
|
|
{ label: 'Namespaces', link: 'kubernetes.resourcePools' },
|
|
'Create a namespace',
|
|
]}
|
|
reload
|
|
/>
|
|
|
|
<div className="row">
|
|
<div className="col-sm-12">
|
|
<CreateNamespaceForm />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|