FIX: use correct name for selectable_avatars_enabled site setting

This commit is contained in:
Penar Musaraj 2019-06-19 13:18:16 -04:00 committed by Neil Lalonde
parent faf059e018
commit e1822034dc

View File

@ -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)
);