Commit 3dc2b2b6 authored by JC Brand's avatar JC Brand

Bugfix. List of messages need to be passed to `api.alert.show`

parent 11d84505
...@@ -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];
} }
......
...@@ -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();
......
...@@ -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())]
)
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment