Comments (9)
@redallen Can you please have a look into this issue.
from frontend-components.
Looks like a redux problem somewhere around here: https://github.com/RedHatInsights/frontend-components/blob/master/packages/notifications/src/NotificationPortal/NotificationPortal.js#L10
I don't know redux well nor a workflow to quickly test Notifications changes. This is better suited for @rvsia or @Hyperkid123 .
from frontend-components.
I will check it out tomorrow.
from frontend-components.
@Hyperkid123 Have you checked it yet? If not, I can take a look tomorrow.
from frontend-components.
@Hyperkid123 Have you checked it yet? If not, I can take a look tomorrow.
No sorry, I haven't had the time 🙁 If you have time to spare please take it over.
from frontend-components.
dismissable
in this context mean that users have to close it manually. Set dismissable
to false
and it will close automatically.
If you want to have an alert that is automatically closed and users can close it manually at that same time, use config like this:
dismissable: true,
title: 'title',
variant: 'danger',
autoDismiss: true,
Please see this documentation.
If you have more issues, please feel free to reopen.
from frontend-components.
dismissable
in this context mean that users have to close it manually. Setdismissable
tofalse
and it will close automatically.If you want to have an alert that is automatically closed and users can close it manually at that same time, use config like this:
dismissable: true, title: 'title', variant: 'danger', autoDismiss: true,Please see this documentation.
If you have more issues, please feel free to reopen.
@rvsia Thanks for the clarification.
We want to have an alert that is automatically closed and users can close it manually at the same time. We are already using the same config as you mentioned but It's not working.
Automatically closed works if we pass dismissable
as false.
dispatch(
addNotification({
title,
variant,
description,
dataTestId,
autoDismiss: true,
dismissable: true,
dismissDelay: 8000,
requestId,
sentryId,
})
);
Please let me know if something I'm doing wrong.
from frontend-components.
@ajaypratap003 I tested it now in Sources-UI and it works well for me.
See here:
(8s dismiss + close button)
code:
dispatch(
addMessage({
title: 'title',
variant: 'danger',
description: 'description',
dataTestId: 'test-id',
autoDismiss: true,
dismissable: true,
dismissDelay: 8000,
requestId: '1232232',
sentryId: '22323',
})
);
version:
"@redhat-cloud-services/frontend-components-notifications": "3.2.2",
from frontend-components.
@ajaypratap003 I tested it now in Sources-UI and it works well for me.
See here:
(8s dismiss + close button)
code:
dispatch( addMessage({ title: 'title', variant: 'danger', description: 'description', dataTestId: 'test-id', autoDismiss: true, dismissable: true, dismissDelay: 8000, requestId: '1232232', sentryId: '22323', }) );version:
"@redhat-cloud-services/frontend-components-notifications": "3.2.2",
@rvsia Thank you so much for providing details. I think we have older version that's why it's not working oin our code. I'll update latest version.
from frontend-components.
Related Issues (20)
- ### ConnectedBreadcrumbs.tsx HOT 2
- ### SimpleTableFilter.test.tsx HOT 2
- ### index.tsx HOT 3
- ### WithHistory.tsx HOT 2
- ### ViewAffectedLink.tsx HOT 1
- ### InsightsLabel.tsx HOT 2
- ### NotAuthorized.tsx HOT 2
- ### Spinner.tsx HOT 2
- ### RebootRequired.tsx HOT 2
- ### WithOuia.test.tsx HOT 1
- ### TableToolbar.tsx HOT 4
- ### TemplateProcessor.tsx HOT 1
- ### Battery.tsx HOT 5
- ### ErrorBoundary.test.tsx HOT 1
- ### MediumBattery.tsx HOT 1
- ### Ansible.tsx HOT 1
- ### NullBattery.tsx HOT 1
- frontend-components-remediations should list @scalprum/react-core as the package dependency
- axios security issue HOT 3
- Request: Update components to support OuiaID prop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontend-components.