-
Notifications
You must be signed in to change notification settings - Fork 467
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
feat(notification): allow configuration of default options #636
feat(notification): allow configuration of default options #636
Conversation
c28f3fe
to
d5f722c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your help! Please check the comments and also reuse this token in Notification
component for the inputs that overlap.
projects/core/modules/notifications/notification-alert/notification-alert-options.ts
Outdated
Show resolved
Hide resolved
projects/core/modules/notifications/notification-alert/notification-alert-options.ts
Outdated
Show resolved
Hide resolved
projects/core/modules/notifications/notification-alert/notification-alert.template.html
Outdated
Show resolved
Hide resolved
Done |
f2c2669
to
5219349
Compare
projects/core/modules/notifications/notification-alert/Notification-alert.ts
Outdated
Show resolved
Hide resolved
1adb7b0
to
b0e6078
Compare
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KarimovDev I'm coming back to this PR. Please see new comments :)
projects/core/modules/notifications/notification-alert/notification-alert.component.ts
Outdated
Show resolved
Hide resolved
projects/core/modules/notifications/notification-alert/notification-alert.template.html
Outdated
Show resolved
Hide resolved
projects/core/modules/notifications/notification-alert/notification-alert.template.html
Outdated
Show resolved
Hide resolved
projects/core/modules/notifications/notification-alert/Notification-alert.ts
Outdated
Show resolved
Hide resolved
0206071
to
20cad2f
Compare
Visit the preview URL for this PR (updated for commit 4e7d825): https://taiga-ui--pr636-feat-notification-al-jmzva20s.web.app (expires Wed, 29 Sep 2021 14:38:50 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
20cad2f
to
9a5c12a
Compare
9a5c12a
to
bc270f5
Compare
bc270f5
to
0d685ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple small comments and let's go ahead and add (status: TuiNotification) => number | boolean
to the autoClose
type.
projects/core/modules/notifications/notification-alert/Notification-alert.ts
Outdated
Show resolved
Hide resolved
Done, with handler execution inside NotificationAlert class. @waterplea What do you think about moving notification-options to interfaces? In this case I can also create shared |
@waterplea Done |
6e9dfe8
to
9301829
Compare
040be79
to
ba2b0ef
Compare
@waterplea Should I do something else here? Some errors occur during the build process, but I can't figure out what is going on |
1904b37
to
0995735
Compare
0995735
to
a5fe831
Compare
…KarimovDev/taiga-ui into feat-notification-alert-options
@KarimovDev Thank you! |
* feat(notification-alert): allow configuration of default options * fix(core): implement review notes * fix(core): move notification interfaces, add autoClose type * feat(notification-alert): allow configuration of default options * fix(core): implement review notes * fix(core): move notification interfaces, add autoClose type * chore: resolve conflicts * chore: fix build Co-authored-by: Dima Karimov <d.karimov@aitarget.com> Co-authored-by: Vladimir <vladimir.potekh@gmail.com>
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Partially implements #133
What is the new behavior?
Default notification options can be set via a provider. This is a partial implementation of #133
Does this PR introduce a breaking change?
Other information