From 5731b3c9525cb708060ffde9b7d7f98ffcca8ae2 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 6 Aug 2020 11:00:33 +0000 Subject: [PATCH] [Admin | Trunk]: Community edit form: Add function for valid email git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@59226 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../community-edit-form/community-edit-form.component.html | 2 +- .../community-edit-form/community-edit-form.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/pages/community/community-edit-form/community-edit-form.component.html b/src/app/pages/community/community-edit-form/community-edit-form.component.html index 058c57e..0a2797b 100644 --- a/src/app/pages/community/community-edit-form/community-edit-form.component.html +++ b/src/app/pages/community/community-edit-form/community-edit-form.component.html @@ -56,7 +56,7 @@
-
Please add a valid email.
diff --git a/src/app/pages/community/community-edit-form/community-edit-form.component.ts b/src/app/pages/community/community-edit-form/community-edit-form.component.ts index e0110b0..9866b44 100644 --- a/src/app/pages/community/community-edit-form/community-edit-form.component.ts +++ b/src/app/pages/community/community-edit-form/community-edit-form.component.ts @@ -144,6 +144,10 @@ export class CommunityEditFormComponent implements OnInit{ } } + public validEmail(email: string): boolean { + return Validator.emailValidator(email); + } + public updateCommunity() { if (!Session.isLoggedIn()) { this._router.navigate(['/user-info'], { queryParams: