-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Toast Warning Message if OpenSearch base map is used in conflicting r…
…egions (#382) * Toast Warning Message if OpenSearch base map is used in conflicting regions Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Add Custom map link to Toast Notification Message Signed-off-by: Naveen Tatikonda <navtat@amazon.com> * Address Review Comments Signed-off-by: Naveen Tatikonda <navtat@amazon.com> --------- Signed-off-by: Naveen Tatikonda <navtat@amazon.com> (cherry picked from commit 63d7232)
- Loading branch information
1 parent
85d7c94
commit 2af3308
Showing
5 changed files
with
89 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { EuiLink } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { ToastInputFields } from '../../../../../src/core/public'; | ||
import { toMountPoint } from '../../../../../src/plugins/opensearch_dashboards_react/public'; | ||
|
||
export const MapsServiceErrorMsg: ToastInputFields = { | ||
title: 'The OpenSearch Maps Service is currently not available in your region', | ||
text: toMountPoint( | ||
<p> | ||
You can configure OpenSearch Dashboards to use a{' '} | ||
<EuiLink | ||
href="https://opensearch.org/docs/latest/dashboards/visualize/maps/#adding-a-custom-map" | ||
target="_blank" | ||
> | ||
custom map | ||
</EuiLink>{' '} | ||
server for dashboards maps. | ||
</p> | ||
), | ||
}; |
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