Commit 98b27fbe authored by JC Brand's avatar JC Brand Committed by GitHub

Merge pull request #1271 from Ppjet6/issue-1252-bookmark-title

Fix #1252, incorrect bookmark icon title
parents 0079ba91 edf98c69
......@@ -6,6 +6,7 @@
- Use ES2015 modules instead of UMD.
- #1257 Prefer 'probably' over 'maybe' when evaluating audio play support.
- #1261 File upload not working
- #1252 Correctly reflect the state in bookmark icon title.
## 4.0.3 (2018-10-22)
......
......@@ -98,14 +98,19 @@ converse.plugins.add('converse-bookmarks', {
},
onBookmarked () {
const { _converse } = this.__super__,
{ __ } = _converse;
const icon = this.el.querySelector('.toggle-bookmark');
if (_.isNull(icon)) {
return;
}
if (this.model.get('bookmarked')) {
icon.classList.add('button-on');
icon.title = __('Unbookmark this groupchat');
} else {
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