diff options
author | Caio Carrara <ccarrara@thoughtworks.com> | 2016-03-22 16:08:07 -0300 |
---|---|---|
committer | Caio Carrara <ccarrara@thoughtworks.com> | 2016-03-22 17:55:13 -0300 |
commit | bcef41ec649157e68b619ee78b249db12e86043e (patch) | |
tree | 919b0123d0677c1a5185a26285b960b83dc5b234 | |
parent | 74e9a6ac698d798c6f02d1c934862529866ed42e (diff) |
Issue #647: Refactor security labels stylesheet
This change refactor the stylesheet of security labels. Now it's
following the BEM naming conventions. Also, as the code is pretty
coupled between css and js, it was necessary some changes on javascript
code to keep the previous i18n key and rename the css classes.
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index d1fba8c4..6f21b96c 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -146,7 +146,7 @@ define( return { cssClass: 'security-status__label--not-encrypted', label: 'not-encrypted' - } + }; } var statusClass = ['security-status__label--encrypted']; @@ -166,7 +166,7 @@ define( return { cssClass: statusClass.join(''), label: statusLabel.join(' ') - } + }; }; this.checkSigned = function(mail) { @@ -187,7 +187,7 @@ define( return statusNotSigned; } - var statusClass = ['security-status__label--signed'] + var statusClass = ['security-status__label--signed']; var statusLabel = ['signed']; if(_.any(mail.security_casing.imprints, function(imprint) { return imprint.state === 'from_revoked'; })) { @@ -208,7 +208,7 @@ define( return { cssClass: statusClass.join(''), label: statusLabel.join(' ') - } + }; }; this.isNotTrusted = function(mail){ |