Pārlūkot izejas kodu

Show three blue dots for verified work contacts

Danilo Bargen 7 gadi atpakaļ
vecāks
revīzija
40653623db

+ 1 - 1
src/directives/verification_level.ts

@@ -29,7 +29,7 @@ export default [
                 const contact: threema.ContactReceiver = this.contact;
 
                 let label;
-                switch (parseInt(this.contact.verificationLevel, 10)) {
+                switch (contact.verificationLevel) {
                     case 1:
                         this.cls = 'level1';
                         label = 'VERIFICATION_LEVEL1_EXPLAIN';

+ 10 - 2
src/sass/components/_verification_level.scss

@@ -32,17 +32,25 @@
       div {
         &:nth-of-type(1),
         &:nth-of-type(2) {
-          background-color: #3b84df;
+          background-color: $work-blue;
         }
       }
     }
-
   }
 
   &.level3 {
     div {
         background-color: $status-ok;
     }
+    &.work {
+      div {
+        &:nth-of-type(1),
+        &:nth-of-type(2),
+        &:nth-of-type(3) {
+          background-color: $work-blue;
+        }
+      }
+    }
   }
 
 }

+ 1 - 0
src/sass/helpers/_colors.scss

@@ -7,6 +7,7 @@ $background-grey: lighten($border-grey, 7%);
 $material-grey: rgba(0, 0, 0, 0.54);
 $material-grey-dark: rgba(0, 0, 0, 0.87);
 $url-light-blue: #63a6cf;
+$work-blue: #3b84df;
 
 $dark-background-color: #F6F6F6;
 $bright-background-color: white;