mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_test_custo: xpath new shape UI
This commit fixes the xpath that have been broken by the new we-select-pager introducing a full height version of the shape UI in the web_editor. task-3266751 closes odoo/design-themes#653 Related: odoo/odoo#118253 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
<!-- Background Shape -->
|
<!-- Background Shape -->
|
||||||
<template id="snippet_options_background_options" inherit_id="website.snippet_options_background_options" name="Background Shape Custom Option">
|
<template id="snippet_options_background_options" inherit_id="website.snippet_options_background_options" name="Background Shape Custom Option">
|
||||||
<xpath expr="//we-select-pager[hasclass('o_we_shape_menu')]/we-select-page[last()]" position="after">
|
<xpath expr="//we-select-pager[hasclass('o_we_bg_shape_menu')]/div/div[last()]/we-select-page[last()]" position="after">
|
||||||
|
<we-title>Custom Shapes</we-title>
|
||||||
<we-select-page string="Custom Shapes">
|
<we-select-page string="Custom Shapes">
|
||||||
<we-button data-shape="theme_test_custo/hexagons/01" data-select-label="Hexagon 01"/>
|
<we-button data-shape="theme_test_custo/hexagons/01" data-select-label="Hexagon 01"/>
|
||||||
<we-button data-shape="theme_test_custo/curves/01" data-select-label="Curve 01"/>
|
<we-button data-shape="theme_test_custo/curves/01" data-select-label="Curve 01"/>
|
||||||
@@ -23,7 +24,8 @@
|
|||||||
|
|
||||||
<!-- Image Shape -->
|
<!-- Image Shape -->
|
||||||
<template id="snippet_options" inherit_id="website.snippet_options" name="Image Shape Custom Option">
|
<template id="snippet_options" inherit_id="website.snippet_options" name="Image Shape Custom Option">
|
||||||
<xpath expr="//we-select-pager[@data-name='shape_img_opt']/we-select-page[last()]" position="after">
|
<xpath expr="//we-select-pager[@data-name='shape_img_opt']/div/div[last()]/we-select-page[last()]" position="after">
|
||||||
|
<we-title>Custom Shapes</we-title>
|
||||||
<we-select-page string="Custom Shapes">
|
<we-select-page string="Custom Shapes">
|
||||||
<we-button data-set-img-shape="theme_test_custo/blob/01" data-select-label="Blob 01"/>
|
<we-button data-set-img-shape="theme_test_custo/blob/01" data-select-label="Blob 01"/>
|
||||||
</we-select-page>
|
</we-select-page>
|
||||||
|
|||||||
Reference in New Issue
Block a user