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

fix(cluster): UI RBAC alert fix [r8s-138] (#72)

This commit is contained in:
Ali 2024-10-31 10:12:56 +13:00 committed by GitHub
parent 8808531cd5
commit 6c57a00a65
2 changed files with 6 additions and 2 deletions

View file

@ -274,7 +274,11 @@ function InnerForm({
</div> </div>
</FormSection> </FormSection>
<FormSection title="Security"> <FormSection title="Security">
{!isRBACEnabled && isRBACEnabledQuery.isSuccess && <RBACAlert />} <div className="form-group">
<div className="col-sm-12">
{!isRBACEnabled && isRBACEnabledQuery.isSuccess && <RBACAlert />}
</div>
</div>
<div className="form-group"> <div className="form-group">
<div className="col-sm-12"> <div className="col-sm-12">
<TextTip color="blue" inline={false}> <TextTip color="blue" inline={false}>

View file

@ -3,7 +3,7 @@ import { Alert } from '@@/Alert';
export function RBACAlert() { export function RBACAlert() {
return ( return (
<Alert color="warn" className="mb-4"> <Alert color="warn" className="mb-4">
<div className="flex-flex-col"> <div className="flex flex-col">
<p> <p>
Your cluster does not have Kubernetes role-based access control (RBAC) Your cluster does not have Kubernetes role-based access control (RBAC)
enabled. enabled.