-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add support for deprecated roles * address PR feedback * remove unused import * copy edits * fix snapshots Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
95cf5f9
commit 4e624b2
Showing
55 changed files
with
1,477 additions
and
304 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
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
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
28 changes: 28 additions & 0 deletions
28
x-pack/plugins/security/public/management/badges/deprecated_badge.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,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { EuiBadge, EuiToolTipProps } from '@elastic/eui'; | ||
import { OptionalToolTip } from './optional_tooltip'; | ||
|
||
interface Props { | ||
'data-test-subj'?: string; | ||
tooltipContent?: EuiToolTipProps['content']; | ||
} | ||
|
||
export const DeprecatedBadge = (props: Props) => { | ||
return ( | ||
<OptionalToolTip tooltipContent={props.tooltipContent}> | ||
<EuiBadge data-test-subj={props['data-test-subj']} color="warning"> | ||
<FormattedMessage | ||
id="xpack.security.management.deprecatedBadge" | ||
defaultMessage="Deprecated" | ||
/> | ||
</EuiBadge> | ||
</OptionalToolTip> | ||
); | ||
}; |
25 changes: 25 additions & 0 deletions
25
x-pack/plugins/security/public/management/badges/disabled_badge.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; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { EuiBadge, EuiToolTipProps } from '@elastic/eui'; | ||
import { OptionalToolTip } from './optional_tooltip'; | ||
|
||
interface Props { | ||
'data-test-subj'?: string; | ||
tooltipContent?: EuiToolTipProps['content']; | ||
} | ||
|
||
export const DisabledBadge = (props: Props) => { | ||
return ( | ||
<OptionalToolTip tooltipContent={props.tooltipContent}> | ||
<EuiBadge data-test-subj={props['data-test-subj']} color="hollow"> | ||
<FormattedMessage id="xpack.security.management.disabledBadge" defaultMessage="Disabled" /> | ||
</EuiBadge> | ||
</OptionalToolTip> | ||
); | ||
}; |
Oops, something went wrong.