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
0288ef43
Commit
0288ef43
authored
Apr 19, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1542
parent
1251f395
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
Makefile
Makefile
+1
-1
dist/converse.js
dist/converse.js
+4
-3
src/converse-profile.js
src/converse-profile.js
+5
-3
No files found.
Makefile
View file @
0288ef43
...
...
@@ -167,7 +167,7 @@ watchjsheadless: dev
.PHONY
:
watch
watch
:
dev
make
-j
3 watchcss
watchjsheadless watchjs
make
-j
2
watchjsheadless watchjs
.PHONY
:
logo
logo
:
logo/conversejs-transparent16.png
\
...
...
dist/converse.js
View file @
0288ef43
...
...
@@ -58186,7 +58186,8 @@ const _converse$env = _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_
Promise = _converse$env.Promise,
utils = _converse$env.utils,
_ = _converse$env._,
moment = _converse$env.moment;
moment = _converse$env.moment,
sizzle = _converse$env.sizzle;
const u = _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].env.utils;
_converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].plugins.add('converse-profile', {
dependencies: ["converse-modal", "converse-vcard", "converse-chatboxviews"],
...
...
@@ -58237,7 +58238,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].plugins
'label_jid': __('XMPP Address (JID)'),
'label_nickname': __('Nickname'),
'label_role': __('Role'),
'label_role_help': __('Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.'),
'label_role_help': __('Use commas to separate multiple roles.
' + '
Your roles are shown next to your name on your chat messages.'),
'label_url': __('URL'),
'utils': u,
'view': this
...
...
@@ -58245,7 +58246,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].plugins
},
afterRender() {
this.tabs =
_.map(this.el.querySelectorAll('.nav-item'), tab => new bootstrap_native__WEBPACK_IMPORTED_MODULE_3___default.a.Tab(tab
));
this.tabs =
sizzle('.nav-item .nav-link', this.el).map(e => new bootstrap_native__WEBPACK_IMPORTED_MODULE_3___default.a.Tab(e
));
},
openFileSelection(ev) {
src/converse-profile.js
View file @
0288ef43
...
...
@@ -18,7 +18,7 @@ import tpl_profile_view from "templates/profile_view.html";
import
tpl_status_option
from
"
templates/status_option.html
"
;
const
{
Strophe
,
Backbone
,
Promise
,
utils
,
_
,
moment
}
=
converse
.
env
;
const
{
Strophe
,
Backbone
,
Promise
,
utils
,
_
,
moment
,
sizzle
}
=
converse
.
env
;
const
u
=
converse
.
env
.
utils
;
...
...
@@ -72,7 +72,9 @@ converse.plugins.add('converse-profile', {
'
label_jid
'
:
__
(
'
XMPP Address (JID)
'
),
'
label_nickname
'
:
__
(
'
Nickname
'
),
'
label_role
'
:
__
(
'
Role
'
),
'
label_role_help
'
:
__
(
'
Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.
'
),
'
label_role_help
'
:
__
(
'
Use commas to separate multiple roles.
'
+
'
Your roles are shown next to your name on your chat messages.
'
),
'
label_url
'
:
__
(
'
URL
'
),
'
utils
'
:
u
,
'
view
'
:
this
...
...
@@ -80,7 +82,7 @@ converse.plugins.add('converse-profile', {
},
afterRender
()
{
this
.
tabs
=
_
.
map
(
this
.
el
.
querySelectorAll
(
'
.nav-item
'
),
(
tab
)
=>
new
bootstrap
.
Tab
(
tab
));
this
.
tabs
=
sizzle
(
'
.nav-item .nav-link
'
,
this
.
el
).
map
(
e
=>
new
bootstrap
.
Tab
(
e
));
},
openFileSelection
(
ev
)
{
...
...
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