-
Notifications
You must be signed in to change notification settings - Fork 117
overlay and notification plugins #4908
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
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:master-web-core, it needs to be retargeted before it can be merged. |
| type: Array, | ||
| }, | ||
| id: Number, | ||
| lifespan: Number, |
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.
duration
| id: Number, | ||
| lifespan: Number, | ||
| message: String, | ||
| pop: Function, |
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.
close
| }); | ||
|
|
||
| setup() { | ||
| setTimeout(() => { |
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.
useTimeout
| @@ -0,0 +1,5 @@ | |||
| .wcore_notification_container { | |||
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.
inline style
| @@ -0,0 +1,84 @@ | |||
| import { computed, Plugin, signal } from "@odoo/owl"; | |||
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.
rename overlayplugin
|
|
||
| const { promise, resolve } = Promise.withResolvers(); | ||
|
|
||
| const notification = { |
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.
class overlay
| }; | ||
|
|
||
| this.notifications()[id] = notification; | ||
| this.notifications.update(); |
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.
this.notifications.update(notifs => notifs[id] = notification);
No description provided.