[FIX] web_tour: dialog closes when a tour is launched

Be in debug=tests. Go on a Form View for res_partner. Go in the debug menu => start tour
start the tour "mail/static/tests/tours/mail_full_composer_test_tour.js"

Before this commit, the start tour dialog is not closed

After this commit, the dialog is closed
This commit is contained in:
Lucas Perais (lpe)
2021-06-18 21:31:34 +02:00
committed by Aaron Bohy
parent 5c572b2783
commit 09e51c8809
@@ -24,6 +24,7 @@ export default class ToursDialog extends Dialog {
*/
_onStartTour(ev) {
this.tourService.reset(ev.target.dataset.name);
this.close();
}
/**
* Starts the given tour in test mode.
@@ -33,6 +34,7 @@ export default class ToursDialog extends Dialog {
*/
_onTestTour(ev) {
this.tourService.run(ev.target.dataset.name);
this.close();
}
}
ToursDialog.bodyTemplate = "web_tour.ToursDialog";