Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import { BaseOptionComponent, useDomState } from "@html_builder/core/utils";
import { BorderConfigurator } from "@html_builder/plugins/border_configurator_option";
import { ShadowOption } from "@html_builder/plugins/shadow_option";
import { onWillStart } from "@odoo/owl";
import { Deferred } from "@web/core/utils/concurrency";

export class HeaderBorderOption extends BaseOptionComponent {
static template = "website.HeaderBorderOption";
static props = {};
static components = { BorderConfigurator, ShadowOption };

setup() {
onWillStart(() => {
const def = new Deferred();
console.log("HeaderBorderOption setup");

setTimeout(() => {
def.resolve();
}, 2000);
console.log("HeaderBorderOption setup end");
return def;
});
super.setup();
this.domState = useDomState((editingElement) => ({
withRoundCorner: !editingElement.classList.contains("o_header_force_no_radius"),
Expand Down
2 changes: 0 additions & 2 deletions addons/web/tests/test_js.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ def test_get_hoot_filter(self):
self._test_params = [('-', '-@web/core/autocomplete,-@web/core/autocomplete2')]
self.assertEqual(self.get_hoot_filters(), '&test=69a6561d&suite=69a6561d&test=cb246db5&suite=cb246db5')

# TODO master-mysterious-egg fix error
@unittest.skip("prepare mysterious-egg for merging")
@odoo.tests.tagged('post_install', '-at_install')
class WebSuite(QunitCommon, HOOTCommon):

Expand Down