[FIX] project: fix project tour in mobile mode

The tour isn't working if you run it on mobile mode, it gets stuck at
some points.

To fix this issue, a mobile step was added, and one trigger was edited
to work with mobile mode as well.

task-3709501

closes odoo/odoo#155789

X-original-commit: 224d3dfb9bbcc53bd2902407800b6fa88d9b8716
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
dise
2024-02-29 10:34:25 +00:00
parent da287cc2f7
commit 110cce72e5
@@ -117,8 +117,13 @@ registry.category("web_tour.tours").add('project_tour', {
}, {
trigger: ".ui-autocomplete > li > a:not(:has(i.fa))",
auto: true,
mobile: false,
}, {
trigger: ".breadcrumb-item:not(.active):last",
trigger: "div[role='article']",
mobile: true,
run: "click",
}, {
trigger: ".o_breadcrumb .o_back_button",
extra_trigger: '.o_form_project_tasks',
content: markup(_t("Let's go back to the <b>kanban view</b> to have an overview of your next tasks.")),
position: "right",