Browse Source

Edges overview widget CustomerInfo updated

pull/3957/head
Artem Babak 5 years ago
parent
commit
8648eadea4
  1. 3
      ui/src/app/locale/locale.constant-en_US.json
  2. 1
      ui/src/app/widget/lib/edges-overview-widget.js
  3. 3
      ui/src/app/widget/lib/edges-overview-widget.tpl.html

3
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. <br><br> List of missing rule chain(s): <br> {{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",

1
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,

3
ui/src/app/widget/lib/edges-overview-widget.tpl.html

@ -17,7 +17,8 @@
-->
<div class="tb-absolute-fill tb-edges-overview" layout="column">
<div ng-show="vm.showData" flex class="tb-absolute-fill" layout="column">
<span class="mat-subheader" *ngIf="vm.customerTitle" fxLayout="row">{{ vm.customerTitle }}</span>
<span class="mat-subheader" ng-if="vm.customerTitle" fxLayout="row">{{ vm.customerTitle }}</span>
<span class="mat-subheader" ng-if="!vm.edgeIsDatasource" fxLayout="row" translate>edge.widget-datasource-error</span>
<md-toolbar class="md-table-toolbar md-default" ng-show="vm.query.search != null">
<div class="md-toolbar-tools">
<md-button class="md-icon-button" aria-label="{{ 'action.search' | translate }}">

Loading…
Cancel
Save