文件操作 - BottomSection.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/core/components/sidemenu/BottomSection.tsx
编辑文件内容
import React from 'react'; import _ from 'lodash'; import SignIn from './SignIn'; import BottomNavLinks from './BottomNavLinks'; import { contextSrv } from 'app/core/services/context_srv'; import config from '../../config'; import { NavModelItem } from '@grafana/data'; export default function BottomSection() { const navTree: NavModelItem[] = _.cloneDeep(config.bootData.navTree); const bottomNav: NavModelItem[] = _.filter(navTree, item => item.hideFromMenu); const isSignedIn = contextSrv.isSignedIn; const user = contextSrv.user; if (user && user.orgCount > 1) { const profileNode: any = _.find(bottomNav, { id: 'profile' }); if (profileNode) { profileNode.showOrgSwitcher = true; } } return ( <div className="sidemenu__bottom"> {!isSignedIn && <SignIn />} {bottomNav.map((link, index) => { return <BottomNavLinks link={link} user={user} key={`${link.url}-${index}`} />; })} </div> ); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件