Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Workplace Search] Add remaining i18n support for the Content Sources tree #89910

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add router i18n
  • Loading branch information
scottybollinger committed Feb 1, 2021
commit 13b27e77dd178d9fb1fea721b7279e7b5b6f1c26
Original file line number Diff line number Diff line change
Expand Up @@ -429,3 +429,25 @@ export const LICENSE_CALLOUT_DESCRIPTION = i18n.translate(
defaultMessage: 'Contact your search experience administrator for more information.',
}
);

export const SOURCE_DISABLED_CALLOUT_TITLE = i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.sourceDisabled.title',
{
defaultMessage: 'Content source is disabled',
}
);

export const SOURCE_DISABLED_CALLOUT_DESCRIPTION = i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.sourceDisabled.description',
{
defaultMessage:
'Your organization’s license level has changed. Your data is safe, but document-level permissions are no longer supported and searching of this source has been disabled. Upgrade to a Platinum license to re-enable this source.',
}
);

export const SOURCE_DISABLED_CALLOUT_BUTTON = i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.sourceDisabled.description',
{
defaultMessage: 'Explore Platinum license',
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ import { SendWorkplaceSearchTelemetry as SendTelemetry } from '../../../shared/t

import { NAV } from '../../constants';

import {
SOURCE_DISABLED_CALLOUT_TITLE,
SOURCE_DISABLED_CALLOUT_DESCRIPTION,
SOURCE_DISABLED_CALLOUT_BUTTON,
} from './constants';

import {
ENT_SEARCH_LICENSE_MANAGEMENT,
REINDEX_JOB_PATH,
Expand Down Expand Up @@ -80,14 +86,10 @@ export const SourceRouter: React.FC = () => {

const callout = (
<>
<EuiCallOut title="Content source is disabled" color="warning" iconType="alert">
<p>
Your organization’s license level has changed. Your data is safe, but document-level
permissions are no longer supported and searching of this source has been disabled.
Upgrade to a Platinum license to re-enable this source.
</p>
<EuiCallOut title={SOURCE_DISABLED_CALLOUT_TITLE} color="warning" iconType="alert">
<p>{SOURCE_DISABLED_CALLOUT_DESCRIPTION}</p>
<EuiButton color="warning" href={ENT_SEARCH_LICENSE_MANAGEMENT}>
Explore Platinum license
{SOURCE_DISABLED_CALLOUT_BUTTON}
</EuiButton>
</EuiCallOut>
<EuiSpacer />
Expand Down