Sfoglia il codice sorgente

💄 add blur units

jmacura 3 anni fa
parent
commit
40e01b1576

+ 1 - 1
src/app/calculator/calculator.component.html

@@ -36,7 +36,7 @@
         <input type="range" min="2" max="10" step="1" [(ngModel)]="calcService.quantileCount">
       </div>
       <div>
-        {{ 'CALCULATOR.selectBlur' | translate}}:&emsp;{{calcService.blurValue}}
+        {{ 'CALCULATOR.selectBlur' | translate}}:&emsp;{{calcService.blurValue}}&nbsp;px <span *ngIf="calcService.blurValue === 0">({{ 'CALCULATOR.blurNone' | translate}})</span>
         <input type="range" min="{{calcService.BLUR_MIN_VALUE}}" max="{{calcService.BLUR_MAX_VALUE}}" step="1" [(ngModel)]="calcService.blurValue">
       </div>
       <div>

+ 2 - 0
src/app/translations.json

@@ -1,6 +1,7 @@
 {
   "cs": {
     "CALCULATOR": {
+      "blurNone": "žádné",
       "getDates": "VYBRAT DATUM",
       "getZones": "ZÍSKAT ZÓNY",
       "loading": "Načítám",
@@ -17,6 +18,7 @@
   },
   "en": {
     "CALCULATOR": {
+      "blurNone": "none",
       "getDates": "GET DATES",
       "getZones": "GET ZONES",
       "loading": "Loading",