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
16faf62d
Commit
16faf62d
authored
Jul 16, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1129 Hide "Contacts" section when logged in anonymously
parent
b4d20079
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
dist/converse.js
dist/converse.js
+9
-4
src/converse-controlbox.js
src/converse-controlbox.js
+3
-2
src/converse-rosterview.js
src/converse-rosterview.js
+3
-1
No files found.
dist/converse.js
View file @
16faf62d
...
...
@@ -70795,8 +70795,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.api.promises.add('controlboxInitialized');
const LABEL_CONTACTS = __('Contacts');
_converse.addControlBox = () => _converse.chatboxes.add({
id: 'controlbox',
box_id: 'controlbox',
...
...
@@ -70865,7 +70863,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
insertRoster() {
if (_converse.authentication === _converse.ANONYMOUS) {
return;
}
/* Place the rosterview inside the "Contacts" panel. */
_converse.api.waitUntil('rosterViewInitialized').then(() => this.controlbox_pane.el.insertAdjacentElement('beforeEnd', _converse.rosterview.el)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
},
...
...
@@ -82222,8 +82225,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
'away': __('This contact is away')
};
const LABEL_CONTACTS = __('Contacts');
const LABEL_GROUPS = __('Groups');
const HEADER_CURRENT_CONTACTS = __('My contacts');
...
...
@@ -83200,6 +83201,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
/* Create an instance of RosterView once the RosterGroups
* collection has been created (in converse-core.js)
*/
if (_converse.authentication === _converse.ANONYMOUS) {
return;
}
_converse.rosterview = new _converse.RosterView({
'model': _converse.rostergroups
});
src/converse-controlbox.js
View file @
16faf62d
...
...
@@ -200,8 +200,6 @@
_converse
.
api
.
promises
.
add
(
'
controlboxInitialized
'
);
const
LABEL_CONTACTS
=
__
(
'
Contacts
'
);
_converse
.
addControlBox
=
()
=>
_converse
.
chatboxes
.
add
({
id
:
'
controlbox
'
,
...
...
@@ -269,6 +267,9 @@
},
insertRoster
()
{
if
(
_converse
.
authentication
===
_converse
.
ANONYMOUS
)
{
return
;
}
/* Place the rosterview inside the "Contacts" panel. */
_converse
.
api
.
waitUntil
(
'
rosterViewInitialized
'
)
.
then
(()
=>
this
.
controlbox_pane
.
el
.
insertAdjacentElement
(
'
beforeEnd
'
,
_converse
.
rosterview
.
el
))
...
...
src/converse-rosterview.js
View file @
16faf62d
...
...
@@ -96,7 +96,6 @@
'
xa
'
:
__
(
'
This contact is away for an extended period
'
),
'
away
'
:
__
(
'
This contact is away
'
)
};
const
LABEL_CONTACTS
=
__
(
'
Contacts
'
);
const
LABEL_GROUPS
=
__
(
'
Groups
'
);
const
HEADER_CURRENT_CONTACTS
=
__
(
'
My contacts
'
);
const
HEADER_PENDING_CONTACTS
=
__
(
'
Pending contacts
'
);
...
...
@@ -977,6 +976,9 @@
/* Create an instance of RosterView once the RosterGroups
* collection has been created (in converse-core.js)
*/
if
(
_converse
.
authentication
===
_converse
.
ANONYMOUS
)
{
return
;
}
_converse
.
rosterview
=
new
_converse
.
RosterView
({
'
model
'
:
_converse
.
rostergroups
});
...
...
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