Commit 595fb99cb4f26174c41ea232b17294884967275e
1 parent
b173e079
Revert allowed entity type for dashboard component - null means show all availabe aliases
Showing
1 changed file
with
1 additions
and
7 deletions
@@ -121,7 +121,6 @@ import { | @@ -121,7 +121,6 @@ import { | ||
121 | DisplayWidgetTypesPanelData | 121 | DisplayWidgetTypesPanelData |
122 | } from '@home/components/dashboard-page/widget-types-panel.component'; | 122 | } from '@home/components/dashboard-page/widget-types-panel.component'; |
123 | import { DashboardWidgetSelectComponent } from '@home/components/dashboard-page/dashboard-widget-select.component'; | 123 | import { DashboardWidgetSelectComponent } from '@home/components/dashboard-page/dashboard-widget-select.component'; |
124 | -import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; | ||
125 | import { MobileService } from '@core/services/mobile.service'; | 124 | import { MobileService } from '@core/services/mobile.service'; |
126 | 125 | ||
127 | import { | 126 | import { |
@@ -193,8 +192,6 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC | @@ -193,8 +192,6 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC | ||
193 | isToolbarOpenedAnimate = false; | 192 | isToolbarOpenedAnimate = false; |
194 | isRightLayoutOpened = false; | 193 | isRightLayoutOpened = false; |
195 | 194 | ||
196 | - allowedEntityTypes: Array<EntityType | AliasEntityType> = null; | ||
197 | - | ||
198 | editingWidget: Widget = null; | 195 | editingWidget: Widget = null; |
199 | editingWidgetLayout: WidgetLayout = null; | 196 | editingWidgetLayout: WidgetLayout = null; |
200 | editingWidgetOriginal: Widget = null; | 197 | editingWidgetOriginal: Widget = null; |
@@ -409,8 +406,6 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC | @@ -409,8 +406,6 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC | ||
409 | }; | 406 | }; |
410 | this.window.parent.postMessage(JSON.stringify(message), '*'); | 407 | this.window.parent.postMessage(JSON.stringify(message), '*'); |
411 | } | 408 | } |
412 | - | ||
413 | - this.allowedEntityTypes = this.entityService.prepareAllowedEntityTypesList(null, true); | ||
414 | } | 409 | } |
415 | 410 | ||
416 | private reset() { | 411 | private reset() { |
@@ -658,8 +653,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC | @@ -658,8 +653,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC | ||
658 | data: { | 653 | data: { |
659 | entityAliases: deepClone(this.dashboard.configuration.entityAliases), | 654 | entityAliases: deepClone(this.dashboard.configuration.entityAliases), |
660 | widgets: this.dashboardUtils.getWidgetsArray(this.dashboard), | 655 | widgets: this.dashboardUtils.getWidgetsArray(this.dashboard), |
661 | - isSingleEntityAlias: false, | ||
662 | - allowedEntityTypes: this.allowedEntityTypes | 656 | + isSingleEntityAlias: false |
663 | } | 657 | } |
664 | }).afterClosed().subscribe((entityAliases) => { | 658 | }).afterClosed().subscribe((entityAliases) => { |
665 | if (entityAliases) { | 659 | if (entityAliases) { |