roomslist: Room name wasn't being shown in confirm
dialog
This commit is contained in:
parent
27760a7d51
commit
dc7249f07d
@ -75,7 +75,7 @@
|
|||||||
var close_el = _converse.rooms_list_view.el.querySelector(".close-room");
|
var close_el = _converse.rooms_list_view.el.querySelector(".close-room");
|
||||||
close_el.click();
|
close_el.click();
|
||||||
expect(window.confirm).toHaveBeenCalledWith(
|
expect(window.confirm).toHaveBeenCalledWith(
|
||||||
'Are you sure you want to leave the room ""?');
|
'Are you sure you want to leave the room "lounge"?');
|
||||||
room_els = _converse.rooms_list_view.el.querySelectorAll(".open-room");
|
room_els = _converse.rooms_list_view.el.querySelectorAll(".open-room");
|
||||||
expect(room_els.length).toBe(0);
|
expect(room_els.length).toBe(0);
|
||||||
expect(_converse.chatboxes.length).toBe(1);
|
expect(_converse.chatboxes.length).toBe(1);
|
||||||
|
@ -2,9 +2,13 @@
|
|||||||
{[ if (num_unread) { ]}
|
{[ if (num_unread) { ]}
|
||||||
<span class="msgs-indicator">{{{ num_unread }}}</span>
|
<span class="msgs-indicator">{{{ num_unread }}}</span>
|
||||||
{[ } ]}
|
{[ } ]}
|
||||||
<a class="open-room" data-room-jid="{{{jid}}}" title="{{{open_title}}}" href="#">{{{name}}}</a>
|
<a class="open-room"
|
||||||
|
data-room-jid="{{{jid}}}"
|
||||||
|
title="{{{open_title}}}" href="#">{{{name}}}</a>
|
||||||
<a class="right close-room icon-leave"
|
<a class="right close-room icon-leave"
|
||||||
data-room-jid="{{{jid}}}" title="{{{info_leave_room}}}" href="#"> </a>
|
data-room-jid="{{{jid}}}"
|
||||||
|
data-room-name="{{{name}}}"
|
||||||
|
title="{{{info_leave_room}}}" href="#"> </a>
|
||||||
<a class="right remove-bookmark icon-pushpin {[ if (bookmarked) { ]} button-on {[ } ]}"
|
<a class="right remove-bookmark icon-pushpin {[ if (bookmarked) { ]} button-on {[ } ]}"
|
||||||
data-room-jid="{{{jid}}}" data-bookmark-name="{{{name}}}"
|
data-room-jid="{{{jid}}}" data-bookmark-name="{{{name}}}"
|
||||||
title="{{{info_remove_bookmark}}}" href="#"> </a>
|
title="{{{info_remove_bookmark}}}" href="#"> </a>
|
||||||
|
Loading…
Reference in New Issue
Block a user