-
-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website_snippet_marginless_gallery: Migration to version 17.0
TT51978
- Loading branch information
1 parent
398329a
commit 1b4edd7
Showing
3 changed files
with
32 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 12 additions & 29 deletions
41
...e_snippet_marginless_gallery/static/src/tests/tours/website_snippet_marginless_gallery.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,18 @@ | ||
/** @odoo-module */ | ||
|
||
/* Copyright 2015-2017 Tecnativa - Jairo Llopis <jairo.llopis@tecnativa.com> | ||
* Copyright 2019 Tecnativa - Cristina Martin R. | ||
* Copyright 2020 Tecnativa - Alexandre D. Díaz | ||
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). */ | ||
|
||
odoo.define("website_snippet_marginless_gallery.tour", function (require) { | ||
"use strict"; | ||
const core = require("web.core"); | ||
const tour = require("web_tour.tour"); | ||
const base = require("web_editor.base"); | ||
|
||
const _t = core._t; | ||
import wTourUtils from '@website/js/tours/tour_utils'; | ||
|
||
tour.register( | ||
"marginless_gallery", | ||
{ | ||
url: "/", | ||
wait_for: base.ready(), | ||
}, | ||
[ | ||
{ | ||
trigger: "a[data-action=edit]", | ||
content: _t("<b>Click Edit</b> to start designing your homepage."), | ||
extra_trigger: ".homepage", | ||
position: "bottom", | ||
}, | ||
{ | ||
trigger: "#snippet_feature .oe_snippet:contains('Marginless Gallery')", | ||
content: _t("Drag <i>Marginless Gallery</i> and drop it on the page."), | ||
position: "bottom", | ||
run: "drag_and_drop #wrap", | ||
}, | ||
] | ||
); | ||
}); | ||
wTourUtils.registerWebsitePreviewTour('marginless_gallery', { | ||
test: true, | ||
url: '/', | ||
edition: true, | ||
}, () => [ | ||
wTourUtils.dragNDrop({id: 's_marginless_gallery', name: 'Marginless Gallery'}), | ||
wTourUtils.clickOnSnippet({id: 's_marginless_gallery', name: 'Marginless Gallery'}), | ||
...wTourUtils.clickOnSave(), | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters