Files
design-themes/theme_vehicle/static/src/js/tour.js
T
qsm-odoo 9ee8f97264 [IMP] theme_*: remove save step from tour definition
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
2021-06-04 09:18:06 +00:00

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')),
]);
});