-
Notifications
You must be signed in to change notification settings - Fork 29
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
IMP add an explicit notification message (printer name for example) #318
base: 16.0
Are you sure you want to change the base?
Conversation
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.
it helps the review when you tell us "why" you are introducing a change
@@ -4,7 +4,11 @@ import {registry} from "@web/core/registry"; | |||
|
|||
async function executeProxyAction({env, action}) { | |||
action.action_list.map(function (act) { | |||
env.services.notification.add(env._t("Your action is being executed"), { | |||
let msg = "Your action is being executed"; | |||
if (act.params.args && act.params.args[2] !== undefined) { |
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.
why not use kwargs ?
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.
There is any problem to use args ?
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.
not really human readable / friendly
btw, why the !==
check ? what values do you expect if act.params.args[2]
is ""
or false
?
Thanks for the review @hparfr . @mourad-ehm could you fix it ? Thanks. |
@bealdav
display an explicit message to facilitate debugging