ServiceAccounts: lowercase edit url (#46517)

This commit is contained in:
Jguer 2022-03-14 13:22:54 +00:00 committed by GitHub
parent cf9f76319a
commit e512029afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ const getServiceAccountsEnabledStatus = (disabled: boolean) => {
const ServiceAccountListItem = memo(
({ serviceAccount, onRoleChange, roleOptions, builtInRoles, onSetToRemove }: ServiceAccountListItemProps) => {
const editUrl = `org/serviceAccounts/${serviceAccount.id}`;
const editUrl = `org/serviceaccounts/${serviceAccount.id}`;
const styles = useStyles2(getStyles);
const canUpdateRole = contextSrv.hasPermissionInMetadata(AccessControlAction.ServiceAccountsWrite, serviceAccount);
const rolePickerDisabled = !canUpdateRole;