From 929bf866cd56e58f51bb6f31fec583a4d9268d40 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 2 Feb 2023 09:19:04 -0700 Subject: [PATCH] Et2Lavatar: Fix missed property camelCase contact_id -> contactId --- api/js/etemplate/Et2Avatar/Et2LAvatar.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Avatar/Et2LAvatar.ts b/api/js/etemplate/Et2Avatar/Et2LAvatar.ts index df34d34068..2185e8b5bf 100644 --- a/api/js/etemplate/Et2Avatar/Et2LAvatar.ts +++ b/api/js/etemplate/Et2Avatar/Et2LAvatar.ts @@ -65,11 +65,11 @@ export class Et2LAvatar extends Et2Avatar { super.updated(changedProperties); - if(changedProperties.has("lname") || changedProperties.has("fname") || changedProperties.has("contact_id") || changedProperties.has("src")) + if(changedProperties.has("lname") || changedProperties.has("fname") || changedProperties.has("contactId") || changedProperties.has("src")) { - if(!this.src || decodeURIComponent(this.src).match("lavatar=1") && (this.fname || this.lname) && this.contact_id) + if(!this.src || decodeURIComponent(this.src).match("lavatar=1") && (this.fname || this.lname) && this.contactId) { - let lavatar = Et2LAvatar.lavatar(this.fname, this.lname, this.contact_id); + let lavatar = Et2LAvatar.lavatar(this.fname, this.lname, this.contactId); this.initials = lavatar.initials; this._baseNode.style.backgroundColor = lavatar.background; }