File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
addons/html_builder/static/src/website_builder/plugins/options Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11import { BaseOptionComponent , useDomState } from "@html_builder/core/utils" ;
22import { BorderConfigurator } from "@html_builder/plugins/border_configurator_option" ;
33import { ShadowOption } from "@html_builder/plugins/shadow_option" ;
4+ import { onWillStart } from "@odoo/owl" ;
5+ import { Deferred } from "@web/core/utils/concurrency" ;
46
57export 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" ) ,
You can’t perform that action at this time.
0 commit comments