Browse Source

fix #2307 - BootstrapModal no more accessible to plugins

Dele Olajide 4 years ago
parent
commit
81f0cb49bb
2 changed files with 2 additions and 0 deletions
  1. 1 0
      CHANGES.md
  2. 1 0
      src/converse-modal.js

+ 1 - 0
CHANGES.md

@@ -37,6 +37,7 @@ Soon we'll deprecate the latter, so prepare now.
 - #2092: fixes room list update loop when having the `locked_muc_domain` truthy or `'hidden'`
 - #2092: fixes room list update loop when having the `locked_muc_domain` truthy or `'hidden'`
 - #2285: Rename config option `muc_hats_from_vcard` to [muc_hats](https://conversejs.org/docs/html/configuration.html#muc-hats). Now accepts a list instead of a boolean and allows for more flexible choices regarding user badges.
 - #2285: Rename config option `muc_hats_from_vcard` to [muc_hats](https://conversejs.org/docs/html/configuration.html#muc-hats). Now accepts a list instead of a boolean and allows for more flexible choices regarding user badges.
 - #2304: Custom emojis (stickers) images not shown 
 - #2304: Custom emojis (stickers) images not shown 
+- #2307: BootstrapModal no more accessible to plugins
 - The `trusted` configuration setting has been removed in favor of two new settings:
 - The `trusted` configuration setting has been removed in favor of two new settings:
     [allow_user_trust_override](https://conversejs.org/docs/html/configuration.html#allow-user-trust-override)
     [allow_user_trust_override](https://conversejs.org/docs/html/configuration.html#allow-user-trust-override)
     [clear_cache_on_logout](https://conversejs.org/docs/html/configuration.html#clear-cache-on-logout)
     [clear_cache_on_logout](https://conversejs.org/docs/html/configuration.html#clear-cache-on-logout)

+ 1 - 0
src/converse-modal.js

@@ -86,6 +86,7 @@ export const BootstrapModal = View.extend({
     }
     }
 });
 });
 
 
+converse.env.BootstrapModal = BootstrapModal; // expose to plugins
 
 
 export const Confirm = BootstrapModal.extend({
 export const Confirm = BootstrapModal.extend({
     events: {
     events: {