-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rhsmActions,platformActions): issues/190 toast notifications
* app, moved notificationsPortal from index * platformActions, pass through platform notifications * platformTypes, expand to include platform notifications * rhsmActions, disable automatic API error notifications
- Loading branch information
Showing
7 changed files
with
78 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,35 @@ | ||
import { | ||
ADD_NOTIFICATION, | ||
REMOVE_NOTIFICATION, | ||
CLEAR_NOTIFICATIONS | ||
} from '@redhat-cloud-services/frontend-components-notifications'; | ||
|
||
const PLATFORM_ADD_NOTIFICATION = ADD_NOTIFICATION; | ||
const PLATFORM_REMOVE_NOTIFICATION = REMOVE_NOTIFICATION; | ||
const PLATFORM_CLEAR_NOTIFICATIONS = CLEAR_NOTIFICATIONS; | ||
const PLATFORM_INIT = 'PLATFORM_INIT'; | ||
const PLATFORM_APP_NAME = 'PLATFORM_APP_NAME'; | ||
const PLATFORM_ON_NAV = 'PLATFORM_ON_NAV'; | ||
const PLATFORM_SET_NAV = 'PLATFORM_SET_NAV'; | ||
|
||
const platformTypes = { PLATFORM_INIT, PLATFORM_APP_NAME, PLATFORM_ON_NAV, PLATFORM_SET_NAV }; | ||
const platformTypes = { | ||
PLATFORM_ADD_NOTIFICATION, | ||
PLATFORM_REMOVE_NOTIFICATION, | ||
PLATFORM_CLEAR_NOTIFICATIONS, | ||
PLATFORM_INIT, | ||
PLATFORM_APP_NAME, | ||
PLATFORM_ON_NAV, | ||
PLATFORM_SET_NAV | ||
}; | ||
|
||
export { platformTypes as default, platformTypes, PLATFORM_INIT, PLATFORM_APP_NAME, PLATFORM_ON_NAV, PLATFORM_SET_NAV }; | ||
export { | ||
platformTypes as default, | ||
platformTypes, | ||
PLATFORM_ADD_NOTIFICATION, | ||
PLATFORM_REMOVE_NOTIFICATION, | ||
PLATFORM_CLEAR_NOTIFICATIONS, | ||
PLATFORM_INIT, | ||
PLATFORM_APP_NAME, | ||
PLATFORM_ON_NAV, | ||
PLATFORM_SET_NAV | ||
}; |