Commit 16c83877 authored by JC Brand's avatar JC Brand

Bugfix. Re-instantiate confirmation promise

parent d895c7fc
...@@ -180,6 +180,7 @@ converse.plugins.add('converse-modal', { ...@@ -180,6 +180,7 @@ converse.plugins.add('converse-modal', {
}) })
confirm = new _converse.Confirm({model}); confirm = new _converse.Confirm({model});
} else { } else {
confirm.confirmation = u.getResolveablePromise();
confirm.model.set({ confirm.model.set({
'title': title, 'title': title,
'messages': messages, 'messages': messages,
...@@ -216,6 +217,7 @@ converse.plugins.add('converse-modal', { ...@@ -216,6 +217,7 @@ converse.plugins.add('converse-modal', {
}) })
prompt = new _converse.Prompt({model}); prompt = new _converse.Prompt({model});
} else { } else {
prompt.confirmation = u.getResolveablePromise();
prompt.model.set({ prompt.model.set({
'title': title, 'title': title,
'messages': messages, 'messages': messages,
......
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