[IMP] web_tour: adapt statusBar CTA helper function
Now that for a single visible button there is no 'Action' dropdown, the tour helper function has to be adapted. Related PR odoo/enterprise#10602 Task ID: 2225270
This commit is contained in:
committed by
Romeo Fragomeli
parent
9bc3760af0
commit
d4e3298b8b
@@ -102,10 +102,15 @@ return core.Class.extend({
|
||||
return [
|
||||
{
|
||||
mobile: true,
|
||||
trigger: '.o_statusbar_buttons .btn.dropdown-toggle:contains(Action)',
|
||||
auto: true,
|
||||
trigger: '.o_statusbar_buttons',
|
||||
extra_trigger: extraTrigger,
|
||||
content: _t('Open Action Dropdown Menu.'),
|
||||
position: 'bottom',
|
||||
run: actions => {
|
||||
const $action = $('.o_statusbar_buttons .btn.dropdown-toggle:contains(Action)');
|
||||
if ($action.length) {
|
||||
actions.click($action);
|
||||
}
|
||||
},
|
||||
}, {
|
||||
trigger: `.o_statusbar_buttons button:enabled:contains('${innerTextButton}')`,
|
||||
content: description,
|
||||
|
||||
Reference in New Issue
Block a user