From d8bd57901e33a7057e26e782e295099ffcc0da89 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 6 Sep 2017 23:04:13 -0700 Subject: Removing webapp --- webapp/components/admin_console/audits/audits.jsx | 101 ---------------------- 1 file changed, 101 deletions(-) delete mode 100644 webapp/components/admin_console/audits/audits.jsx (limited to 'webapp/components/admin_console/audits/audits.jsx') diff --git a/webapp/components/admin_console/audits/audits.jsx b/webapp/components/admin_console/audits/audits.jsx deleted file mode 100644 index 0811c216f..000000000 --- a/webapp/components/admin_console/audits/audits.jsx +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import LoadingScreen from 'components/loading_screen.jsx'; -import AuditTable from 'components/audit_table.jsx'; -import ComplianceReports from 'components/admin_console/compliance_reports'; - -import React from 'react'; -import PropTypes from 'prop-types'; -import {FormattedMessage} from 'react-intl'; - -export default class Audits extends React.PureComponent { - static propTypes = { - - /* - * Array of audits to render - */ - audits: PropTypes.arrayOf(PropTypes.object).isRequired, - - actions: PropTypes.shape({ - - /* - * Function to fetch audits - */ - getAudits: PropTypes.func.isRequired - }).isRequired - } - - constructor(props) { - super(props); - - this.state = { - loadingAudits: true - }; - } - - componentDidMount() { - this.props.actions.getAudits().then( - () => this.setState({loadingAudits: false}) - ); - } - - reload = () => { - this.setState({loadingAudits: true}); - this.props.actions.getAudits().then( - () => this.setState({loadingAudits: false}) - ); - } - - render() { - let content = null; - - if (global.window.mm_license.IsLicensed !== 'true') { - return
; - } - - if (this.state.loadingAudits) { - content = ; - } else { - content = ( -
- -
- ); - } - - return ( -
- - -
-

- - -

-
- {content} -
-
-
- ); - } -} -- cgit v1.2.3-1-g7c22