From 8648eadea45f0458bb0bcf28e7c27aec91ffb6d6 Mon Sep 17 00:00:00 2001 From: Artem Babak Date: Mon, 11 Jan 2021 06:30:59 +0200 Subject: [PATCH] Edges overview widget CustomerInfo updated --- ui/src/app/locale/locale.constant-en_US.json | 3 ++- ui/src/app/widget/lib/edges-overview-widget.js | 1 + ui/src/app/widget/lib/edges-overview-widget.tpl.html | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/app/locale/locale.constant-en_US.json b/ui/src/app/locale/locale.constant-en_US.json index e4aedb319f..c064e6d83f 100644 --- a/ui/src/app/locale/locale.constant-en_US.json +++ b/ui/src/app/locale/locale.constant-en_US.json @@ -857,7 +857,8 @@ "missing-related-rule-chains-text": "Assigned to edge rule chain(s) use rule nodes that forward message(s) to rule chain(s) that are not assigned to this edge.

List of missing rule chain(s):
{{missingRuleChains}}", "downlinks": "Downlinks", "no-downlinks-prompt": "No downlinks found", - "assigned-to-customer-widget": "Assigned to: {{customerTitle}}" + "assigned-to-customer-widget": "Assigned to: {{customerTitle}}", + "widget-datasource-error": "This widget supports only EDGE entity datasource" }, "edge-event": { "type-dashboard": "Dashboard", diff --git a/ui/src/app/widget/lib/edges-overview-widget.js b/ui/src/app/widget/lib/edges-overview-widget.js index 396bc1a23e..f70539ea11 100644 --- a/ui/src/app/widget/lib/edges-overview-widget.js +++ b/ui/src/app/widget/lib/edges-overview-widget.js @@ -68,6 +68,7 @@ function EdgesOverviewWidgetController($element, $scope, $q, $timeout, $translat }; vm.customerTitle = null; + vm.edgeIsDatasource = true; var edgeGroupsTypes = [ types.entityType.asset, diff --git a/ui/src/app/widget/lib/edges-overview-widget.tpl.html b/ui/src/app/widget/lib/edges-overview-widget.tpl.html index 9a107beb6d..b85d22589d 100644 --- a/ui/src/app/widget/lib/edges-overview-widget.tpl.html +++ b/ui/src/app/widget/lib/edges-overview-widget.tpl.html @@ -17,7 +17,8 @@ -->
- {{ vm.customerTitle }} + {{ vm.customerTitle }} + edge.widget-datasource-error