From 7e76020ce1eee2a1fb3f7d08ced85873fe983067 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 18 Jul 2022 09:50:56 -0600 Subject: [PATCH] Get Et2Avatar edit to load current value --- api/js/etemplate/Et2Avatar/Et2Avatar.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Avatar/Et2Avatar.ts b/api/js/etemplate/Et2Avatar/Et2Avatar.ts index 279f70c8cb..73c108f0a0 100644 --- a/api/js/etemplate/Et2Avatar/Et2Avatar.ts +++ b/api/js/etemplate/Et2Avatar/Et2Avatar.ts @@ -273,7 +273,11 @@ export class Et2Avatar extends Et2Widget(SlotMixin(SlAvatar)) implements et2_IDe return dialog; }; - dialog(egw.lang('Edit avatar'),self.options, buttons, null); + let value = { + contact_id: self.contact_id, + src: self.image + } + dialog(egw.lang('Edit avatar'), value, buttons, null); });