diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-09-28 16:26:20 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-09-29 12:54:33 +0000 |
| commit | 07ef748c542cb20fdab4f0d9c02a87fb07bede3c (patch) | |
| tree | f22129a68e808ed290dde3ced9014cba0686c233 /addons/mail/static/src/js | |
| parent | 53468d71b913211b38f4856f2bdb62594ee24ea8 (diff) | |
[FIX] mail: fix tour to allow public or private channel selection
task-2313321
closes odoo/odoo#58778
X-original-commit: f6a561a7e21772c6a25785c8b2428954d4bd152e
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js')
| -rw-r--r-- | addons/mail/static/src/js/tours/mail.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/tours/mail.js b/addons/mail/static/src/js/tours/mail.js index b37ed70751f..552df7ea0d5 100644 --- a/addons/mail/static/src/js/tours/mail.js +++ b/addons/mail/static/src/js/tours/mail.js @@ -22,9 +22,12 @@ tour.register('mail_tour', { actions.text("SomeChannel_" + t, this.$anchor); }, }, { - trigger: ".ui-autocomplete .ui-menu-item > a:contains(Create):has(.fa-lock)", - content: _t("<p> Create a private channel.</p>"), - position: 'bottom', + trigger: ".o_DiscussSidebar_newChannelAutocompleteSuggestions", + content: _t("<p>Create a public or private channel.</p>"), + position: 'right', + run() { + this.$consumeEventAnchors.find('li:first').click(); + }, }, { trigger: '.o_Discuss_thread .o_ComposerTextInput_textarea', content: _t("<p><b>Write a message</b> to the members of the channel here.</p> <p>You can notify someone with <i>'@'</i> or link another channel with <i>'#'</i>. Start your message with <i>'/'</i> to get the list of possible commands.</p>"), |
