-
Notifications
You must be signed in to change notification settings - Fork 47
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
[REF] figure: unify chart and image menus #2091
Conversation
6c968dc
to
78fd612
Compare
LGTM :) I'm just wondering what's the difference between using |
Functionnaly it's the same thing, it's just that personnaly I think it's better to have as little code as possible in the |
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.
nice :)
78fd612
to
6aabd3e
Compare
6aabd3e
to
0167cef
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.
rebased, fixed conflicts, and applied comments
Nice ref :)
robodoo r+
src/registries/figure_registry.ts
Outdated
}); | ||
|
||
function getChartMenuRegistry( |
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.
function getChartMenuRegistry( | |
function getChartMenu( |
src/registries/figure_registry.ts
Outdated
name: _lt("Delete"), | ||
description: "delete", |
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.
Before this commit, the chart and image menus were handled separately in `figure_chart.ts` and `figure_image.ts`. This led to a lot of duplicated code since they both do 80% the same thing. Now the figure menu is handled in `figure.ts`, and a `menuRegistryBuilder` was added to `figureRegistry`. Odoo task 3199007
0167cef
to
b4a5b61
Compare
robodoo r+ prettier foirage |
Before this commit, the chart and image menus were handled separately in `figure_chart.ts` and `figure_image.ts`. This led to a lot of duplicated code since they both do 80% the same thing. Now the figure menu is handled in `figure.ts`, and a `menuRegistryBuilder` was added to `figureRegistry`. Odoo task 3199007 closes #2091 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
recent changes brought by #2091 required to expose another component in order to extend the chart menus in Odoo.
recent changes brought by #2091 required to expose another component in order to extend the chart menus in Odoo.
recent changes brought by #2091 required to expose another component in order to extend the chart menus in Odoo. closes #2230 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
Description:
Before this commit, the chart and image menus were handled separately in
figure_chart.ts
andfigure_image.ts
. This led to a lot of duplicated code since they both do 80% the same thing.Now the figure menu is handled in
figure.ts
, and amenuRegistryBuilder
was added tofigureRegistry
.Odoo task ID : 3199007
review checklist