File tree 1 file changed +12
-0
lines changed
addons/html_builder/static/src/website_builder/plugins/options
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { BaseOptionComponent , useDomState } from "@html_builder/core/utils" ;
2
2
import { BorderConfigurator } from "@html_builder/plugins/border_configurator_option" ;
3
3
import { ShadowOption } from "@html_builder/plugins/shadow_option" ;
4
+ import { onWillStart } from "@odoo/owl" ;
5
+ import { Deferred } from "@web/core/utils/concurrency" ;
4
6
5
7
export class HeaderBorderOption extends BaseOptionComponent {
6
8
static template = "website.HeaderBorderOption" ;
7
9
static props = { } ;
8
10
static components = { BorderConfigurator, ShadowOption } ;
9
11
10
12
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
+ } ) ;
11
23
super . setup ( ) ;
12
24
this . domState = useDomState ( ( editingElement ) => ( {
13
25
withRoundCorner : ! editingElement . classList . contains ( "o_header_force_no_radius" ) ,
You can’t perform that action at this time.
0 commit comments