Skip to content

Commit 4d90db8

Browse files
committed
[FIX] web: wip 2
1 parent 248775c commit 4d90db8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

addons/html_builder/static/src/website_builder/plugins/options/header_border_option.js

+12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
import { BaseOptionComponent, useDomState } from "@html_builder/core/utils";
22
import { BorderConfigurator } from "@html_builder/plugins/border_configurator_option";
33
import { ShadowOption } from "@html_builder/plugins/shadow_option";
4+
import { onWillStart } from "@odoo/owl";
5+
import { Deferred } from "@web/core/utils/concurrency";
46

57
export class HeaderBorderOption extends BaseOptionComponent {
68
static template = "website.HeaderBorderOption";
79
static props = {};
810
static components = { BorderConfigurator, ShadowOption };
911

1012
setup() {
13+
onWillStart(() => {
14+
const def = new Deferred();
15+
console.log("HeaderBorderOption setup");
16+
17+
setTimeout(() => {
18+
def.resolve();
19+
}, 2000);
20+
console.log("HeaderBorderOption setup end");
21+
return def;
22+
});
1123
super.setup();
1224
this.domState = useDomState((editingElement) => ({
1325
withRoundCorner: !editingElement.classList.contains("o_header_force_no_radius"),

0 commit comments

Comments
 (0)