From 6d9967ba9f7b33360d4d422729b672bc7782d4e6 Mon Sep 17 00:00:00 2001 From: Jorge Padawan Date: Mon, 25 Jan 2021 10:59:24 +0100 Subject: [PATCH] Add list of emails from client --- front/salix/components/summary/index.js | 8 +++++++- modules/client/front/summary/index.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/front/salix/components/summary/index.js b/front/salix/components/summary/index.js index 5cbbec3e7..232abc3e6 100644 --- a/front/salix/components/summary/index.js +++ b/front/salix/components/summary/index.js @@ -2,7 +2,13 @@ import ngModule from '../../module'; import Section from '../section'; import './style.scss'; -export default class Summary extends Section {} +export default class Summary extends Section { + listEmails(email) { + if (!email) return; + const emailList = email.split(','); + return emailList.join(', '); + } +} ngModule.vnComponent('vnSummary', { controller: Summary diff --git a/modules/client/front/summary/index.html b/modules/client/front/summary/index.html index 3e8f4f705..b1ec1f781 100644 --- a/modules/client/front/summary/index.html +++ b/modules/client/front/summary/index.html @@ -40,7 +40,7 @@ value="{{$ctrl.summary.mobile}}"> + value="{{$ctrl.listEmails($ctrl.summary.email)}}">