mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-07 05:57:41 +00:00
description mapping enhanced
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
465a255e9f
commit
b8ee5b2711
1 changed files with 4 additions and 2 deletions
|
@ -3,9 +3,11 @@
|
||||||
// icon-color: red; icon-glyph: broadcast-tower;
|
// icon-color: red; icon-glyph: broadcast-tower;
|
||||||
|
|
||||||
/**************
|
/**************
|
||||||
Version 2.1.0
|
Version 2.2.0
|
||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
|
v2.2.0:
|
||||||
|
- description mapping enhanced
|
||||||
v2.1.0:
|
v2.1.0:
|
||||||
- description mapping added
|
- description mapping added
|
||||||
v2.0.0:
|
v2.0.0:
|
||||||
|
@ -693,7 +695,7 @@ if (data !== undefined) {
|
||||||
// Total Values
|
// Total Values
|
||||||
let totalValues;
|
let totalValues;
|
||||||
if (v.unitOfMeasure !== 'MB') {
|
if (v.unitOfMeasure !== 'MB') {
|
||||||
totalValues = `${(showRemainingContingent ? v.remaining : v.used)} ${v.unitOfMeasure} von ${v.total} ${v.unitOfMeasure}`
|
totalValues = `${(showRemainingContingent ? v.remaining : v.used)} ${descriptionMapping[v.unitOfMeasure] ? descriptionMapping[v.unitOfMeasure] : v.unitOfMeasure} von ${v.total} ${descriptionMapping[v.unitOfMeasure] ? descriptionMapping[v.unitOfMeasure] : v.unitOfMeasure}`
|
||||||
} else if (parseInt(v.total) < 1000) {
|
} else if (parseInt(v.total) < 1000) {
|
||||||
totalValues = `${(showRemainingContingent ? v.remaining : v.used)} MB von ${v.total} MB`
|
totalValues = `${(showRemainingContingent ? v.remaining : v.used)} MB von ${v.total} MB`
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue