Avoid bookmark toggle duplication
This commit is contained in:
parent
4a954a80e6
commit
201b8559b6
|
@ -63,8 +63,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
renderBookmarkToggle () {
|
renderBookmarkToggle () {
|
||||||
|
if (this.el.querySelector('.chat-head .toggle-bookmark')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const { _converse } = this.__super__,
|
const { _converse } = this.__super__,
|
||||||
{ __ } = _converse;
|
{ __ } = _converse;
|
||||||
|
|
||||||
const bookmark_button = tpl_chatroom_bookmark_toggle(
|
const bookmark_button = tpl_chatroom_bookmark_toggle(
|
||||||
_.assignIn(this.model.toJSON(), {
|
_.assignIn(this.model.toJSON(), {
|
||||||
info_toggle_bookmark: __('Bookmark this groupchat'),
|
info_toggle_bookmark: __('Bookmark this groupchat'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user