mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
fixes for avatar on adding permission and size for gicon
This commit is contained in:
@@ -39,7 +39,7 @@ class AddPermissions extends Component<IProps, any> {
|
||||
permissions.newItem.setUser(null, null);
|
||||
return;
|
||||
}
|
||||
return permissions.newItem.setUser(user.id, user.login);
|
||||
return permissions.newItem.setUser(user.id, user.login, user.avatarUrl);
|
||||
}
|
||||
|
||||
teamPicked(team: Team) {
|
||||
|
||||
@@ -13,7 +13,7 @@ export default class DisabledPermissionListItem extends Component<IProps, any> {
|
||||
return (
|
||||
<tr className="gf-form-disabled">
|
||||
<td style={{ width: '1%' }}>
|
||||
<i style={{ width: '25px' }} className="gicon gicon-shield" />
|
||||
<i style={{ width: '25px', fontSize: '1.5rem' }} className="gicon gicon-shield" />
|
||||
</td>
|
||||
<td style={{ width: '90%' }}>
|
||||
{item.name}
|
||||
|
||||
@@ -28,6 +28,7 @@ function ItemDescription({ item }) {
|
||||
}
|
||||
|
||||
export default observer(({ item, removeItem, permissionChanged, itemIndex, folderInfo }) => {
|
||||
console.log(item);
|
||||
const handleRemoveItem = evt => {
|
||||
evt.preventDefault();
|
||||
removeItem(itemIndex);
|
||||
@@ -38,7 +39,6 @@ export default observer(({ item, removeItem, permissionChanged, itemIndex, folde
|
||||
};
|
||||
|
||||
const inheritedFromRoot = item.dashboardId === -1 && folderInfo && folderInfo.id === 0;
|
||||
console.log(item.name);
|
||||
|
||||
return (
|
||||
<tr className={setClassNameHelper(item.inherited)}>
|
||||
|
||||
Reference in New Issue
Block a user