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
3dc2b2b6
Commit
3dc2b2b6
authored
Aug 07, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix. List of messages need to be passed to `api.alert.show`
parent
11d84505
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
src/converse-modal.js
src/converse-modal.js
+1
-1
src/converse-profile.js
src/converse-profile.js
+4
-3
src/converse-rosterview.js
src/converse-rosterview.js
+3
-2
No files found.
src/converse-modal.js
View file @
3dc2b2b6
...
@@ -75,7 +75,7 @@ converse.plugins.add('converse-modal', {
...
@@ -75,7 +75,7 @@ converse.plugins.add('converse-modal', {
Object
.
assign
(
_converse
.
api
,
{
Object
.
assign
(
_converse
.
api
,
{
'
alert
'
:
{
'
alert
'
:
{
'
show
'
(
type
,
title
,
messages
)
{
show
(
type
,
title
,
messages
)
{
if
(
_
.
isString
(
messages
))
{
if
(
_
.
isString
(
messages
))
{
messages
=
[
messages
];
messages
=
[
messages
];
}
}
...
...
src/converse-profile.js
View file @
3dc2b2b6
...
@@ -107,9 +107,10 @@ converse.plugins.add('converse-profile', {
...
@@ -107,9 +107,10 @@ converse.plugins.add('converse-profile', {
_converse
.
log
(
err
,
Strophe
.
LogLevel
.
FATAL
);
_converse
.
log
(
err
,
Strophe
.
LogLevel
.
FATAL
);
_converse
.
api
.
alert
.
show
(
_converse
.
api
.
alert
.
show
(
Strophe
.
LogLevel
.
ERROR
,
Strophe
.
LogLevel
.
ERROR
,
__
(
'
Error
'
),
__
(
'
Error
'
),
[
[
__
(
"
Sorry, an error happened while trying to save your profile data.
"
),
__
(
"
Sorry, an error happened while trying to save your profile data.
"
),
__
(
"
You can check your browser's developer console for any error output.
"
)]
__
(
"
You can check your browser's developer console for any error output.
"
)
]
)
)
});
});
this
.
modal
.
hide
();
this
.
modal
.
hide
();
...
...
src/converse-rosterview.js
View file @
3dc2b2b6
...
@@ -509,8 +509,9 @@ converse.plugins.add('converse-rosterview', {
...
@@ -509,8 +509,9 @@ converse.plugins.add('converse-rosterview', {
_converse
.
log
(
e
,
Strophe
.
LogLevel
.
ERROR
);
_converse
.
log
(
e
,
Strophe
.
LogLevel
.
ERROR
);
_converse
.
api
.
alert
.
show
(
_converse
.
api
.
alert
.
show
(
Strophe
.
LogLevel
.
ERROR
,
Strophe
.
LogLevel
.
ERROR
,
__
(
'
Sorry, there was an error while trying to remove %1$s as a contact.
'
,
this
.
model
.
getDisplayName
())
__
(
'
Error
'
),
);
[
__
(
'
Sorry, there was an error while trying to remove %1$s as a contact.
'
,
this
.
model
.
getDisplayName
())]
)
}
}
},
},
...
...
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