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
ef5ecb2f
Commit
ef5ecb2f
authored
Aug 05, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decouple converse-controlbox and converse-profile
parent
edcb8e28
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
+17
-12
src/converse-chatview.js
src/converse-chatview.js
+1
-1
src/converse-controlbox.js
src/converse-controlbox.js
+7
-11
src/converse-profile.js
src/converse-profile.js
+8
-0
src/converse.js
src/converse.js
+1
-0
No files found.
src/converse-chatview.js
View file @
ef5ecb2f
...
...
@@ -363,7 +363,7 @@ converse.plugins.add('converse-chatview', {
this
.
render
();
this
.
updateAfterMessagesFetched
();
/**
* Triggered once the
_converse.ChatBoxView
has been initialized
* Triggered once the
{@link _converse.ChatBoxView}
has been initialized
* @event _converse#chatBoxInitialized
* @type { _converse.ChatBoxView | _converse.HeadlinesBoxView }
* @example _converse.api.listen.on('chatBoxInitialized', view => { ... });
...
...
src/converse-controlbox.js
View file @
ef5ecb2f
...
...
@@ -8,7 +8,6 @@
* @module converse-controlbox
*/
import
"
converse-chatview
"
;
import
"
converse-profile
"
;
import
_FormData
from
"
formdata-polyfill
"
;
import
bootstrap
from
"
bootstrap.native
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
...
...
@@ -476,16 +475,13 @@ converse.plugins.add('converse-controlbox', {
className
:
'
controlbox-pane
'
,
initialize
()
{
if
(
!
_converse
.
XMPPStatusView
)
{
return
;
}
_converse
.
xmppstatusview
=
new
_converse
.
XMPPStatusView
({
'
model
'
:
_converse
.
xmppstatus
});
this
.
el
.
insertAdjacentElement
(
'
afterBegin
'
,
_converse
.
xmppstatusview
.
render
().
el
);
/**
* Triggered once the {@link _converse.ControlBoxPane} has been initialized
* @event _converse#controlBoxPaneInitialized
* @type { _converse.ControlBoxPane }
* @example _converse.api.listen.on('controlBoxPaneInitialized', view => { ... });
*/
_converse
.
api
.
trigger
(
'
controlBoxPaneInitialized
'
,
this
);
}
});
...
...
src/converse-profile.js
View file @
ef5ecb2f
...
...
@@ -306,6 +306,14 @@ converse.plugins.add('converse-profile', {
}
}
});
/******************** Event Handlers ********************/
_converse
.
api
.
listen
.
on
(
'
controlBoxPaneInitialized
'
,
(
view
)
=>
{
_converse
.
xmppstatusview
=
new
_converse
.
XMPPStatusView
({
'
model
'
:
_converse
.
xmppstatus
});
view
.
el
.
insertAdjacentElement
(
'
afterBegin
'
,
_converse
.
xmppstatusview
.
render
().
el
);
});
}
});
src/converse.js
View file @
ef5ecb2f
...
...
@@ -17,6 +17,7 @@ import "converse-muc-views"; // Views related to MUC
import
"
converse-notification
"
;
// HTML5 Notifications
import
"
converse-omemo
"
;
import
"
converse-push
"
;
// XEP-0357 Push Notifications
import
"
converse-profile
"
;
import
"
converse-register
"
;
// XEP-0077 In-band registration
import
"
converse-roomslist
"
;
// Show currently open chat rooms
import
"
converse-rosterview
"
;
...
...
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