2019-05-02 12:33:27 +00:00
|
|
|
import React, { Component, Fragment } from 'react';
|
2019-05-05 10:29:06 +00:00
|
|
|
import PropTypes from 'prop-types';
|
2022-12-29 04:21:47 +00:00
|
|
|
import { Link } from '@gatsbyjs/reach-router';
|
2019-04-03 08:54:24 +00:00
|
|
|
import { siteRoot, gettext } from '../../utils/constants';
|
2019-05-02 12:33:27 +00:00
|
|
|
import MainPanelTopbar from './main-panel-topbar';
|
2019-04-03 08:54:24 +00:00
|
|
|
|
|
|
|
class OrgLogs extends Component {
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
tabItemClick = (param) => {
|
|
|
|
this.props.tabItemClick(param);
|
2023-09-13 00:40:50 +00:00
|
|
|
};
|
2019-04-03 08:54:24 +00:00
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2019-05-02 12:33:27 +00:00
|
|
|
<Fragment>
|
2019-05-05 07:18:54 +00:00
|
|
|
<MainPanelTopbar/>
|
2019-05-02 12:33:27 +00:00
|
|
|
<div className="main-panel-center flex-row">
|
|
|
|
<div className="cur-view-container">
|
|
|
|
<div className="cur-view-path org-user-nav">
|
|
|
|
<ul className="nav">
|
|
|
|
<li className="nav-item" onClick={() => this.tabItemClick('logadmin')}>
|
2019-05-05 10:29:06 +00:00
|
|
|
<Link
|
2024-07-18 03:58:42 +00:00
|
|
|
className={`nav-link ${this.props.currentTab === 'logadmin' ? 'active' : ''}`}
|
2019-05-05 10:29:06 +00:00
|
|
|
to={siteRoot + 'org/logadmin/'} title={gettext('File Access')}>{gettext('File Access')}
|
|
|
|
</Link>
|
2019-05-02 12:33:27 +00:00
|
|
|
</li>
|
|
|
|
<li className="nav-item" onClick={() => this.tabItemClick('file-update')}>
|
2019-05-05 10:29:06 +00:00
|
|
|
<Link
|
2024-07-18 03:58:42 +00:00
|
|
|
className={`nav-link ${this.props.currentTab === 'file-update' ? 'active' : ''}`}
|
2019-05-05 10:29:06 +00:00
|
|
|
to={siteRoot + 'org/logadmin/file-update/'} title={gettext('File Update')}>{gettext('File Update')}
|
|
|
|
</Link>
|
2019-05-02 12:33:27 +00:00
|
|
|
</li>
|
|
|
|
<li className="nav-item" onClick={() => this.tabItemClick('perm-audit')}>
|
2019-05-05 10:29:06 +00:00
|
|
|
<Link
|
2024-07-18 03:58:42 +00:00
|
|
|
className={`nav-link ${this.props.currentTab === 'perm-audit' ? 'active' : ''}`}
|
2019-05-05 10:29:06 +00:00
|
|
|
to={siteRoot + 'org/logadmin/perm-audit/'} title={gettext('Permission')}>{gettext('Permission')}
|
|
|
|
</Link>
|
2019-05-02 12:33:27 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{this.props.children}
|
2019-04-03 08:54:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-02 12:33:27 +00:00
|
|
|
</Fragment>
|
2019-04-03 08:54:24 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-05 10:29:06 +00:00
|
|
|
const propTypes = {
|
|
|
|
currentTab: PropTypes.string.isRequired,
|
|
|
|
tabItemClick: PropTypes.func.isRequired,
|
2023-09-13 00:40:50 +00:00
|
|
|
children: PropTypes.any.isRequired,
|
2019-05-05 10:29:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
OrgLogs.propTypes = propTypes;
|
|
|
|
|
2019-04-03 08:54:24 +00:00
|
|
|
export default OrgLogs;
|