mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[REF] *: remove owl from linter's accepted global variables
Before this commit, owl was in the linter's accepted global variables.
This allowed direct access to owl global object.
For instance, to use xml from owl, you could do :
`const { xml } = owl;`
or you could use it directly:
`owl.xml`
Now, owl is not accepted on linter's global variables anymore, so to
import xml, now you need to use a proper import:
`import { xml } from "@odoo/owl";`
task-id 3498859
closes odoo/design-themes#709
Related: odoo/odoo#137517
Related: odoo/enterprise#48364
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
import { patch } from "@web/core/utils/patch";
|
||||
import { useService } from '@web/core/utils/hooks';
|
||||
import { WebsiteSwitcherSystray } from '@website/systray_items/website_switcher';
|
||||
|
||||
const { onMounted, useState } = owl;
|
||||
import { onMounted, useState } from "@odoo/owl";
|
||||
|
||||
patch(WebsiteSwitcherSystray.prototype, {
|
||||
setup() {
|
||||
|
||||
Reference in New Issue
Block a user