Fix #1252, incorrect bookmark icon title

Signed-off-by: default avatarMaxime “pep” Buquet <pep@bouah.net>
parent c583678c
...@@ -99,14 +99,19 @@ converse.plugins.add('converse-bookmarks', { ...@@ -99,14 +99,19 @@ converse.plugins.add('converse-bookmarks', {
}, },
onBookmarked () { onBookmarked () {
const { _converse } = this.__super__,
{ __ } = _converse;
const icon = this.el.querySelector('.toggle-bookmark'); const icon = this.el.querySelector('.toggle-bookmark');
if (_.isNull(icon)) { if (_.isNull(icon)) {
return; return;
} }
if (this.model.get('bookmarked')) { if (this.model.get('bookmarked')) {
icon.classList.add('button-on'); icon.classList.add('button-on');
icon.title = __('Unbookmark this groupchat');
} else { } else {
icon.classList.remove('button-on'); icon.classList.remove('button-on');
icon.title = __('Bookmark this groupchat');
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment