From b8ee5b2711ad7c6c39f2a0a1d06e389ddc7b1fce Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Wed, 30 Dec 2020 16:13:55 +0100 Subject: [PATCH] description mapping enhanced Signed-off-by: Benny Samir Hierl --- VodafoneDE/VodafoneDE.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VodafoneDE/VodafoneDE.js b/VodafoneDE/VodafoneDE.js index bdadc8f..664f40f 100644 --- a/VodafoneDE/VodafoneDE.js +++ b/VodafoneDE/VodafoneDE.js @@ -3,9 +3,11 @@ // icon-color: red; icon-glyph: broadcast-tower; /************** -Version 2.1.0 +Version 2.2.0 Changelog: + v2.2.0: + - description mapping enhanced v2.1.0: - description mapping added v2.0.0: @@ -693,7 +695,7 @@ if (data !== undefined) { // Total Values let totalValues; 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) { totalValues = `${(showRemainingContingent ? v.remaining : v.used)} MB von ${v.total} MB` } else {