forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from tsullivan/reporting-ilm
Reporting/ILM: Break up ReportListingUi
- Loading branch information
Showing
7 changed files
with
596 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
x-pack/plugins/reporting/public/management/default/report_listing_default.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React, { FC } from 'react'; | ||
|
||
import { EuiPageHeader, EuiSpacer } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
|
||
import { ListingPropsInternal } from '..'; | ||
import { ReportListingTable } from '../report_listing_table'; | ||
|
||
/** | ||
* Used in non-stateful (Serverless) | ||
* Does not render controls for features only applicable in Stateful | ||
*/ | ||
export const ReportListingDefault: FC<ListingPropsInternal> = (props) => { | ||
const { apiClient, capabilities, config, navigateToUrl, toasts, urlService, ...listingProps } = | ||
props; | ||
return ( | ||
<> | ||
<EuiPageHeader | ||
data-test-subj="reportingPageHeader" | ||
bottomBorder | ||
pageTitle={ | ||
<FormattedMessage id="xpack.reporting.listing.reportstitle" defaultMessage="Reports" /> | ||
} | ||
description={ | ||
<FormattedMessage | ||
id="xpack.reporting.listing.reports.subtitle" | ||
defaultMessage="Get reports generated in Kibana applications." | ||
/> | ||
} | ||
/> | ||
<EuiSpacer size={'l'} /> | ||
<ReportListingTable | ||
{...listingProps} | ||
apiClient={apiClient} | ||
capabilities={capabilities} | ||
config={config} | ||
toasts={toasts} | ||
navigateToUrl={navigateToUrl} | ||
urlService={urlService} | ||
/> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.