Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
160ab345
Commit
160ab345
authored
Dec 03, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename ids of two modals
parent
1a161ad2
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
13 deletions
+13
-13
sass/_chatrooms.scss
sass/_chatrooms.scss
+1
-1
spec/muc.js
spec/muc.js
+5
-5
spec/muclist.js
spec/muclist.js
+1
-1
src/converse-muc-views.js
src/converse-muc-views.js
+1
-1
src/modals/muc-details.js
src/modals/muc-details.js
+1
-1
src/modals/muc-list.js
src/modals/muc-list.js
+1
-1
src/modals/templates/muc-details.js
src/modals/templates/muc-details.js
+1
-1
src/modals/templates/muc-list.js
src/modals/templates/muc-list.js
+1
-1
src/templates/room_panel.js
src/templates/room_panel.js
+1
-1
No files found.
sass/_chatrooms.scss
View file @
160ab345
...
...
@@ -11,7 +11,7 @@
}
}
#
room
-details-modal
{
#
muc
-details-modal
{
.features-list
{
margin-left
:
1em
;
}
...
...
spec/muc.js
View file @
160ab345
...
...
@@ -2454,9 +2454,9 @@ describe("Groupchats", function () {
const
jid
=
'
room@conference.example.org
'
;
const
view
=
_converse
.
chatboxviews
.
get
(
jid
);
const
info_el
=
view
.
el
.
querySelector
(
"
.show-
room
-details-modal
"
);
const
info_el
=
view
.
el
.
querySelector
(
"
.show-
muc
-details-modal
"
);
info_el
.
click
();
const
modal
=
_converse
.
api
.
modal
.
get
(
'
room
-details-modal
'
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
muc
-details-modal
'
);
await
u
.
waitUntil
(()
=>
u
.
isVisible
(
modal
.
el
),
1000
);
let
features_list
=
modal
.
el
.
querySelector
(
'
.features-list
'
);
...
...
@@ -4812,7 +4812,7 @@ describe("Groupchats", function () {
const
roomspanel
=
_converse
.
chatboxviews
.
get
(
'
controlbox
'
).
roomspanel
;
roomspanel
.
el
.
querySelector
(
'
.show-list-muc-modal
'
).
click
();
mock
.
closeControlBox
(
_converse
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
list-chatrooms
-modal
'
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
muc-list
-modal
'
);
await
u
.
waitUntil
(()
=>
u
.
isVisible
(
modal
.
el
),
1000
);
spyOn
(
_converse
.
ChatRoom
.
prototype
,
'
getDiscoInfo
'
).
and
.
callFake
(()
=>
Promise
.
resolve
());
roomspanel
.
delegateEvents
();
// We need to rebind all events otherwise our spy won't be called
...
...
@@ -4889,7 +4889,7 @@ describe("Groupchats", function () {
const
roomspanel
=
_converse
.
chatboxviews
.
get
(
'
controlbox
'
).
roomspanel
;
roomspanel
.
el
.
querySelector
(
'
.show-list-muc-modal
'
).
click
();
mock
.
closeControlBox
(
_converse
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
list-chatrooms
-modal
'
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
muc-list
-modal
'
);
await
u
.
waitUntil
(()
=>
u
.
isVisible
(
modal
.
el
),
1000
);
const
server_input
=
modal
.
el
.
querySelector
(
'
input[name="server"]
'
);
expect
(
server_input
.
value
).
toBe
(
'
muc.example.org
'
);
...
...
@@ -4906,7 +4906,7 @@ describe("Groupchats", function () {
const
roomspanel
=
_converse
.
chatboxviews
.
get
(
'
controlbox
'
).
roomspanel
;
roomspanel
.
el
.
querySelector
(
'
.show-list-muc-modal
'
).
click
();
mock
.
closeControlBox
(
_converse
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
list-chatrooms
-modal
'
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
muc-list
-modal
'
);
await
u
.
waitUntil
(()
=>
u
.
isVisible
(
modal
.
el
),
1000
);
spyOn
(
_converse
.
ChatRoom
.
prototype
,
'
getDiscoInfo
'
).
and
.
callFake
(()
=>
Promise
.
resolve
());
roomspanel
.
delegateEvents
();
// We need to rebind all events otherwise our spy won't be called
...
...
spec/muclist.js
View file @
160ab345
...
...
@@ -204,7 +204,7 @@ describe("A groupchat shown in the groupchats list", function () {
const
info_el
=
_converse
.
rooms_list_view
.
el
.
querySelector
(
"
.room-info
"
);
info_el
.
click
();
const
modal
=
_converse
.
api
.
modal
.
get
(
'
room
-details-modal
'
);
const
modal
=
_converse
.
api
.
modal
.
get
(
'
muc
-details-modal
'
);
await
u
.
waitUntil
(()
=>
u
.
isVisible
(
modal
.
el
),
1000
);
let
els
=
modal
.
el
.
querySelectorAll
(
'
p.room-info
'
);
expect
(
els
[
0
].
textContent
).
toBe
(
"
Name: A Dark Cave
"
)
...
...
src/converse-muc-views.js
View file @
160ab345
...
...
@@ -562,7 +562,7 @@ export const ChatRoomView = ChatBoxView.extend({
'
i18n_text
'
:
__
(
'
Details
'
),
'
i18n_title
'
:
__
(
'
Show more information about this groupchat
'
),
'
handler
'
:
ev
=>
this
.
showRoomDetailsModal
(
ev
),
'
a_class
'
:
'
show-
room
-details-modal
'
,
'
a_class
'
:
'
show-
muc
-details-modal
'
,
'
icon_class
'
:
'
fa-info-circle
'
,
'
name
'
:
'
details
'
});
...
...
src/modals/muc-details.js
View file @
160ab345
...
...
@@ -4,7 +4,7 @@ import { __ } from '../i18n';
export
default
BootstrapModal
.
extend
({
id
:
"
room
-details-modal
"
,
id
:
"
muc
-details-modal
"
,
initialize
()
{
BootstrapModal
.
prototype
.
initialize
.
apply
(
this
,
arguments
);
...
...
src/modals/muc-list.js
View file @
160ab345
...
...
@@ -82,7 +82,7 @@ function toggleRoomInfo (ev) {
export
default
BootstrapModal
.
extend
({
id
:
"
list-chatrooms
-modal
"
,
id
:
"
muc-list
-modal
"
,
persistent
:
true
,
initialize
()
{
...
...
src/modals/templates/muc-details.js
View file @
160ab345
...
...
@@ -50,7 +50,7 @@ export default (o) => {
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="
room
-details-modal-label">
${
o
.
display_name
}
</h5>
<h5 class="modal-title" id="
muc
-details-modal-label">
${
o
.
display_name
}
</h5>
${
modal_header_close_button
}
</div>
<div class="modal-body">
...
...
src/modals/templates/muc-list.js
View file @
160ab345
...
...
@@ -56,7 +56,7 @@ export default (o) => {
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="
list-chatrooms
-modal-label">
${
i18n_list_chatrooms
}
</h5>
<h5 class="modal-title" id="
muc-list
-modal-label">
${
i18n_list_chatrooms
}
</h5>
${
modal_header_close_button
}
</div>
<div class="modal-body d-flex flex-column">
...
...
src/templates/room_panel.js
View file @
160ab345
...
...
@@ -3,7 +3,7 @@ import { html } from "lit-html";
export
default
(
o
)
=>
html
`
<div class="d-flex controlbox-padded">
<span class="w-100 controlbox-heading controlbox-heading--groupchats">
${
o
.
heading_chatrooms
}
</span>
<a class="controlbox-heading__btn show-list-muc-modal fa fa-list-ul" title="
${
o
.
title_list_rooms
}
" data-toggle="modal" data-target="#
list-chatrooms
-modal"></a>
<a class="controlbox-heading__btn show-list-muc-modal fa fa-list-ul" title="
${
o
.
title_list_rooms
}
" data-toggle="modal" data-target="#
muc-list
-modal"></a>
<a class="controlbox-heading__btn show-add-muc-modal fa fa-plus" title="
${
o
.
title_new_room
}
" data-toggle="modal" data-target="#add-chatrooms-modal"></a>
</div>
<div class="list-container list-container--openrooms hidden"></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment