From b27b4bef442ffb3b813cceffe1d2e8a74d3f9619 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 6 Apr 2017 00:00:04 -0400 Subject: [PATCH] border options for avatars --- src/app/directives/letterAvatarDirective.js | 8 +++++++- .../organization/views/organizationSubvaultsUsers.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/directives/letterAvatarDirective.js b/src/app/directives/letterAvatarDirective.js index 97e4755f5e..863b3efd5e 100644 --- a/src/app/directives/letterAvatarDirective.js +++ b/src/app/directives/letterAvatarDirective.js @@ -88,7 +88,9 @@ angular 'Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif', round: attrs.round || 'true', dynamic: attrs.dynamic || 'true', - class: attrs.avclass || '' + class: attrs.avclass || '', + border: attrs.avborder || 'false', + borderStyle: attrs.borderStyle || '3px solid white' }; if (params.dynamic === 'true') { @@ -127,6 +129,10 @@ angular img.css('border-radius', '50%'); } + if (params.border === 'true') { + img.css('border', params.borderStyle); + } + if (params.class) { img.addClass(params.class); } diff --git a/src/app/organization/views/organizationSubvaultsUsers.html b/src/app/organization/views/organizationSubvaultsUsers.html index b916da5b85..290bff50a7 100644 --- a/src/app/organization/views/organizationSubvaultsUsers.html +++ b/src/app/organization/views/organizationSubvaultsUsers.html @@ -23,7 +23,7 @@ - {{user.email}} + {{user.email}}
{{user.name}}