From e1822034dcb08c29130de597df1efcafac8cc707 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 19 Jun 2019 13:18:16 -0400 Subject: [PATCH] FIX: use correct name for selectable_avatars_enabled site setting --- .../javascripts/discourse/initializers/avatar-select.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/initializers/avatar-select.js.es6 b/app/assets/javascripts/discourse/initializers/avatar-select.js.es6 index 3b72cc520a9..f35ee67540b 100644 --- a/app/assets/javascripts/discourse/initializers/avatar-select.js.es6 +++ b/app/assets/javascripts/discourse/initializers/avatar-select.js.es6 @@ -5,9 +5,9 @@ export default { name: "avatar-select", initialize(container) { - this.selectAvatarsEnabled = container.lookup( + this.selectableAvatarsEnabled = container.lookup( "site-settings:main" - ).select_avatars_enabled; + ).selectable_avatars_enabled; container .lookup("app-events:main") @@ -27,7 +27,7 @@ export default { const modal = showModal("avatar-selector"); modal.setProperties({ user, selected }); - if (this.selectAvatarsEnabled) { + if (this.selectableAvatarsEnabled) { ajax("/site/selectable-avatars.json").then(avatars => modal.set("selectableAvatars", avatars) );