Commit 17ecaa96604b5d41efa4181e176df4f826d9fa60
1 parent
746d1718
Edge widget incorrect datasource type message
Showing
2 changed files
with
4 additions
and
8 deletions
... | ... | @@ -17,12 +17,8 @@ |
17 | 17 | --> |
18 | 18 | <div class="tb-edges-overview tb-absolute-fill" tb-toast toastTarget="{{ toastTargetId }}"> |
19 | 19 | <div fxFlex fxLayout="column" class="tb-absolute-fill"> |
20 | - <div *ngIf="customerTitle" fxLayout="row"> | |
21 | - <span class="mat-subheader">{{ customerTitle }}</span> | |
22 | - </div> | |
23 | - <div *ngIf="!isDatasourceEdgeType" fxLayout="row"> | |
24 | - <span class="mat-subheader" translate>edge.widget-datasource-error</span> | |
25 | - </div> | |
20 | + <span class="mat-subheader" *ngIf="customerTitle" fxLayout="row">{{ customerTitle }}</span> | |
21 | + <span class="mat-subheader" *ngIf="!edgeIsDatasource" fxLayout="row" translate>edge.widget-datasource-error</span> | |
26 | 22 | <div fxFlex class="tb-entities-nav-tree-panel"> |
27 | 23 | <tb-nav-tree |
28 | 24 | [loadNodes]="loadNodes" | ... | ... |
... | ... | @@ -54,7 +54,7 @@ export class EdgesOverviewWidgetComponent extends PageComponent implements OnIni |
54 | 54 | |
55 | 55 | public toastTargetId = 'edges-overview-' + this.utils.guid(); |
56 | 56 | public customerTitle: string = null; |
57 | - public isDatasourceEdgeType: boolean = true; | |
57 | + public edgeIsDatasource: boolean = true; | |
58 | 58 | |
59 | 59 | private widgetConfig: WidgetConfig; |
60 | 60 | private subscription: IWidgetSubscription; |
... | ... | @@ -92,7 +92,7 @@ export class EdgesOverviewWidgetComponent extends PageComponent implements OnIni |
92 | 92 | } else if (datasource.type === DatasourceType.function) { |
93 | 93 | cb(this.loadNodesForEdge(datasource.entityId, datasource.entity)); |
94 | 94 | } else { |
95 | - this.isDatasourceEdgeType = false; | |
95 | + this.edgeIsDatasource = false; | |
96 | 96 | cb([]); |
97 | 97 | } |
98 | 98 | } | ... | ... |