文件操作 - LdapUserMappingInfo.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/features/admin/ldap/LdapUserMappingInfo.tsx
编辑文件内容
import React, { FC } from 'react'; import { LdapUserInfo } from 'app/types'; interface Props { info: LdapUserInfo; showAttributeMapping?: boolean; } export const LdapUserMappingInfo: FC<Props> = ({ info, showAttributeMapping }) => { return ( <div className="gf-form-group"> <div className="gf-form"> <table className="filter-table form-inline"> <thead> <tr> <th colSpan={2}>User information</th> {showAttributeMapping && <th>LDAP attribute</th>} </tr> </thead> <tbody> <tr> <td className="width-16">First name</td> <td>{info.name.ldapValue}</td> {showAttributeMapping && <td>{info.name.cfgAttrValue}</td>} </tr> <tr> <td className="width-16">Surname</td> <td>{info.surname.ldapValue}</td> {showAttributeMapping && <td>{info.surname.cfgAttrValue}</td>} </tr> <tr> <td className="width-16">Username</td> <td>{info.login.ldapValue}</td> {showAttributeMapping && <td>{info.login.cfgAttrValue}</td>} </tr> <tr> <td className="width-16">Email</td> <td>{info.email.ldapValue}</td> {showAttributeMapping && <td>{info.email.cfgAttrValue}</td>} </tr> </tbody> </table> </div> </div> ); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件