forked from opensearch-project/security-analytics
-
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.
Disable notification option for alerts if notification plugin is not …
…present (opensearch-project#136) * disable notification option if no notif plugin Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * use fragment and Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * reference github issue in TODO Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * change console.error to teaster notifications Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * add learn more link Resolves opensearch-project#137 Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * fix console.error log Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * Adjusted OSD version used by test workflows. (opensearch-project#149) * Adjusted OSD version used by test workflows. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Fixed env variable call. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Revised comment to include github issue link. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> Signed-off-by: AWSHurneyt <hurneyt@amazon.com> Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * use console.warn(s) Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> * extract response logic to helper method Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> Signed-off-by: Aleksandar Djindjic <djindjic@gmail.com> Signed-off-by: AWSHurneyt <hurneyt@amazon.com> Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
- Loading branch information
1 parent
d73d43c
commit 0c5d28a
Showing
17 changed files
with
178 additions
and
7 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
public/components/NotificationsCallOut/NotificationsCallOut.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,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui'; | ||
|
||
export const NotificationsCallOut = () => { | ||
return ( | ||
<> | ||
<EuiCallOut title="Notifications plugin is not installed" color="danger" iconType="alert"> | ||
<p> | ||
Install the notifications plugin in order to create and select channels to send out | ||
notifications. | ||
<EuiLink href="https://opensearch.org/docs/latest/notifications-plugin/index/" external> | ||
Learn more | ||
</EuiLink> | ||
. | ||
</p> | ||
</EuiCallOut> | ||
<EuiSpacer size="m" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default NotificationsCallOut; |
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,8 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { NotificationsCallOut } from './NotificationsCallOut'; | ||
|
||
export { NotificationsCallOut }; |
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
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.