From d89646df27d945a3bf7898034e8b0278ea31d0b5 Mon Sep 17 00:00:00 2001 From: hadi Date: Fri, 3 Nov 2023 11:32:14 +0100 Subject: [PATCH] Fix Editable Avatar's edit/delete icons are no longer displayed --- api/js/etemplate/Et2Avatar/Et2Avatar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Avatar/Et2Avatar.ts b/api/js/etemplate/Et2Avatar/Et2Avatar.ts index 3198ccb639..c1761b3535 100644 --- a/api/js/etemplate/Et2Avatar/Et2Avatar.ts +++ b/api/js/etemplate/Et2Avatar/Et2Avatar.ts @@ -246,10 +246,10 @@ export class Et2Avatar extends Et2Widget(SlAvatar) implements et2_IDetachedDOM { let self = this; this._editBtn = document.createElement('et2-button-icon'); - this._editBtn.setAttribute('name', 'pencil'); + this._editBtn.setAttribute('image', 'pencil'); this._editBtn.setAttribute('part', 'edit'); this._delBtn = document.createElement('et2-button-icon'); - this._delBtn.setAttribute('name', 'trash'); + this._delBtn.setAttribute('image', 'delete'); this._delBtn.setAttribute('part', 'edit'); this._baseNode.append(this._editBtn); this._baseNode.append(this._delBtn);