ServiceAccounts: Lock role picker for external service accounts (#79727)
This commit is contained in:
@@ -31,7 +31,7 @@ export const ServiceAccountRoleRow = ({ label, serviceAccount, roleOptions, onRo
|
|||||||
onBasicRoleChange={onRoleChange}
|
onBasicRoleChange={onRoleChange}
|
||||||
roleOptions={roleOptions}
|
roleOptions={roleOptions}
|
||||||
basicRoleDisabled={!canUpdateRole}
|
basicRoleDisabled={!canUpdateRole}
|
||||||
disabled={serviceAccount.isDisabled}
|
disabled={serviceAccount.isExternal || serviceAccount.isDisabled}
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ const ServiceAccountListItemComponent = memo(
|
|||||||
onBasicRoleChange={(newRole) => onRoleChange(newRole, serviceAccount)}
|
onBasicRoleChange={(newRole) => onRoleChange(newRole, serviceAccount)}
|
||||||
roleOptions={roleOptions}
|
roleOptions={roleOptions}
|
||||||
basicRoleDisabled={!canUpdateRole}
|
basicRoleDisabled={!canUpdateRole}
|
||||||
disabled={serviceAccount.isDisabled}
|
disabled={serviceAccount.isExternal || serviceAccount.isDisabled}
|
||||||
width={40}
|
width={40}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user