mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
9ee8f97264
It is now automatic as the last step of the homepage tours.
Part of https://github.com/odoo/design-themes/pull/2
task-2491890
X-original-commit: 536a8466f6
58 lines
1.5 KiB
JavaScript
58 lines
1.5 KiB
JavaScript
odoo.define("theme_vehicle.tour.vehicle", function (require) {
|
|
"use strict";
|
|
|
|
const core = require("web.core");
|
|
const _t = core._t;
|
|
|
|
const wTourUtils = require("website.tour_utils");
|
|
var tour = require("web_tour.tour");
|
|
|
|
const snippets = [
|
|
{
|
|
id: 's_cover',
|
|
name: 'Cover',
|
|
},
|
|
{
|
|
id: 's_text_image',
|
|
name: 'Text - Image',
|
|
},
|
|
{
|
|
id: 's_masonry_block',
|
|
name: 'Masonry',
|
|
},
|
|
{
|
|
id: 's_text_image:last-of-type',
|
|
name: 'Image - Text',
|
|
},
|
|
{
|
|
id: 's_table_of_content',
|
|
name: 'Table of Content',
|
|
},
|
|
{
|
|
id: 's_call_to_action',
|
|
name: 'Call to Action',
|
|
},
|
|
{
|
|
id: 's_references',
|
|
name: 'References',
|
|
},
|
|
];
|
|
|
|
wTourUtils.registerThemeHomepageTour("vehicle_tour", [
|
|
wTourUtils.dragNDrop(snippets[0], 'top'),
|
|
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
|
wTourUtils.goBackToBlocks(),
|
|
|
|
wTourUtils.dragNDrop(snippets[1], 'top'),
|
|
wTourUtils.dragNDrop(snippets[2], 'top'),
|
|
|
|
wTourUtils.dragNDrop(snippets[3], 'top'),
|
|
wTourUtils.dragNDrop(snippets[4], 'top'),
|
|
wTourUtils.dragNDrop(snippets[5], 'top'),
|
|
wTourUtils.dragNDrop(snippets[6], 'top'),
|
|
wTourUtils.clickOnSnippet(snippets[6], 'top'),
|
|
wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')),
|
|
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
|
|
]);
|
|
});
|