From 66485118cd1e62baa1a6bbd5da37bb4fbcb17b80 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Sat, 19 Aug 2023 19:48:29 +0200 Subject: [PATCH] oh-trend: Fix type of trendlineSampling parameter (#1995) Fixes #1632. --------- Signed-off-by: Florian Hotze --- bundles/org.openhab.ui/doc/components/oh-cell.md | 2 +- bundles/org.openhab.ui/doc/components/oh-label-card.md | 2 +- bundles/org.openhab.ui/doc/components/oh-label-cell.md | 2 +- bundles/org.openhab.ui/doc/components/oh-trend.md | 2 +- .../web/src/assets/definitions/widgets/system/trend.js | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bundles/org.openhab.ui/doc/components/oh-cell.md b/bundles/org.openhab.ui/doc/components/oh-cell.md index 036714c080..8bc8d4515f 100644 --- a/bundles/org.openhab.ui/doc/components/oh-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-cell.md @@ -261,7 +261,7 @@ A regular or expandable cell - + Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute" diff --git a/bundles/org.openhab.ui/doc/components/oh-label-card.md b/bundles/org.openhab.ui/doc/components/oh-label-card.md index f65b109943..bb2aa9f766 100644 --- a/bundles/org.openhab.ui/doc/components/oh-label-card.md +++ b/bundles/org.openhab.ui/doc/components/oh-label-card.md @@ -467,7 +467,7 @@ Display the state of an item in a card - + Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute" diff --git a/bundles/org.openhab.ui/doc/components/oh-label-cell.md b/bundles/org.openhab.ui/doc/components/oh-label-cell.md index 475329b86f..64b92169b9 100644 --- a/bundles/org.openhab.ui/doc/components/oh-label-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-label-cell.md @@ -277,7 +277,7 @@ A cell with a big label to show a short item state value - + Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute" diff --git a/bundles/org.openhab.ui/doc/components/oh-trend.md b/bundles/org.openhab.ui/doc/components/oh-trend.md index ce16a8f2e1..f094a66273 100644 --- a/bundles/org.openhab.ui/doc/components/oh-trend.md +++ b/bundles/org.openhab.ui/doc/components/oh-trend.md @@ -59,7 +59,7 @@ Trend line to display the overall recent evolution of an item - + Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute" diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/trend.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/trend.js index 9f3d3377a8..b06c6db014 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/trend.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/trend.js @@ -1,4 +1,4 @@ -import { pi, pt, po } from '../helpers.js' +import { pi, pt, po, pn } from '../helpers.js' export default () => [ pi('trendItem', 'Trend Line Item', 'Item to show as a trend line in the background'), @@ -11,5 +11,5 @@ export default () => [ { value: 'left', label: 'left' }, { value: 'right', label: 'right' } ]).a(), - pt('trendSampling', 'Trend Line Sampling', 'Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"').a() + pn('trendSampling', 'Trend Line Sampling', 'Amount of minutes between each point of the trendline (default: 60). Affected by persistence strategies different from "every minute"').a() ]