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.
[Uptime] Move uptime to new solution nav (elastic#100905) (elastic#10…
…1271) * Expose options to customize the route matching * Add more comments * move uptime to new solution nav * push * update test * add an extra breadcrumb Co-authored-by: Felix Stürmer <stuermer@weltenwort.de> Co-authored-by: Shahzad <shahzad.muhammad@elastic.co> Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
- Loading branch information
1 parent
5f6cf01
commit a72f05d
Showing
24 changed files
with
471 additions
and
556 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
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
25 changes: 25 additions & 0 deletions
25
x-pack/plugins/uptime/public/components/certificates/certificate_title.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,25 @@ | ||
/* | ||
* 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 from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { useSelector } from 'react-redux'; | ||
import { certificatesSelector } from '../../state/certificates/certificates'; | ||
|
||
export const CertificateTitle = () => { | ||
const { data: certificates } = useSelector(certificatesSelector); | ||
|
||
return ( | ||
<FormattedMessage | ||
id="xpack.uptime.certificates.heading" | ||
defaultMessage="TLS Certificates ({total})" | ||
values={{ | ||
total: <span data-test-subj="uptimeCertTotal">{certificates?.total ?? 0}</span>, | ||
}} | ||
/> | ||
); | ||
}; |
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
69 changes: 0 additions & 69 deletions
69
x-pack/plugins/uptime/public/components/common/header/page_header.test.tsx
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
x-pack/plugins/uptime/public/components/common/header/page_header.tsx
This file was deleted.
Oops, something went wrong.
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.