diff --git a/ui-ngx/src/app/modules/home/components/import-export/import-dialog-csv.component.html b/ui-ngx/src/app/modules/home/components/import-export/import-dialog-csv.component.html index 2f9598015c..39bf361794 100644 --- a/ui-ngx/src/app/modules/home/components/import-export/import-dialog-csv.component.html +++ b/ui-ngx/src/app/modules/home/components/import-export/import-dialog-csv.component.html @@ -16,7 +16,7 @@ -->
- +

{{ importTitle }}

@@ -44,13 +44,11 @@ -
- +
- @@ -62,7 +60,7 @@
import.csv-delimiter - + {{ delimiter.value }} @@ -78,16 +76,15 @@
-
+
- @@ -98,16 +95,15 @@ {{ 'import.stepper-text.column-type' | translate }} -
+
- @@ -131,9 +127,8 @@ {{ translate.instant('import.message.error-entities', {count: this.statistical.error.entity}) }}

-
- - diff --git a/ui-ngx/src/app/modules/home/components/import-export/import-export.models.ts b/ui-ngx/src/app/modules/home/components/import-export/import-export.models.ts index 85064a7236..cd37c43223 100644 --- a/ui-ngx/src/app/modules/home/components/import-export/import-export.models.ts +++ b/ui-ngx/src/app/modules/home/components/import-export/import-export.models.ts @@ -17,9 +17,6 @@ import { Widget, WidgetType } from '@app/shared/models/widget.models'; import { DashboardLayoutId } from '@shared/models/dashboard.models'; import { WidgetsBundle } from '@shared/models/widgets-bundle.model'; -import { ActionNotificationShow } from '@core/notification/notification.actions'; -import { ActionType } from '@shared/models/audit-log.models'; -import { RuleChain, RuleChainMetaData } from '@shared/models/rule-chain.models'; export interface ImportWidgetResult { widget: Widget; diff --git a/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.html b/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.html index 889eaa9c1d..b7360837d7 100644 --- a/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.html +++ b/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.html @@ -15,7 +15,7 @@ limitations under the License. --> - + @@ -52,5 +52,5 @@ - +
diff --git a/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.ts b/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.ts index 9e759ec641..e2fe0caef2 100644 --- a/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.ts +++ b/ui-ngx/src/app/modules/home/components/import-export/table-columns-assignment.component.ts @@ -19,8 +19,12 @@ import { ControlValueAccessor, FormControl, NG_VALIDATORS, NG_VALUE_ACCESSOR, Va import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { EntityType } from '@shared/models/entity-type.models'; -import { CsvColumnParam, ImportEntityColumnType, importEntityColumnTypeTranslations, - importEntityObjectColumns } from '@home/components/import-export/import-export.models'; +import { + CsvColumnParam, + ImportEntityColumnType, + importEntityColumnTypeTranslations, + importEntityObjectColumns +} from '@home/components/import-export/import-export.models'; import { BehaviorSubject, Observable } from 'rxjs'; import { CollectionViewer, DataSource } from '@angular/cdk/collections'; @@ -51,8 +55,6 @@ export class TableColumnsAssignmentComponent implements OnInit, ControlValueAcce displayedColumns = ['order', 'sampleData', 'type', 'key']; - importEntityColumnType = ImportEntityColumnType; - columnTypes: AssignmentColumnType[] = []; columnTypesTranslations = importEntityColumnTypeTranslations; @@ -138,12 +140,10 @@ export class TableColumnsAssignmentComponent implements OnInit, ControlValueAcce } public isColumnTypeDiffers(columnType: ImportEntityColumnType): boolean { - return columnType !== ImportEntityColumnType.name && - columnType !== ImportEntityColumnType.type && - columnType !== ImportEntityColumnType.label && - columnType !== ImportEntityColumnType.accessToken && - columnType !== ImportEntityColumnType.isGateway && - columnType !== ImportEntityColumnType.description; + return columnType === ImportEntityColumnType.clientAttribute || + columnType === ImportEntityColumnType.sharedAttribute || + columnType === ImportEntityColumnType.serverAttribute || + columnType === ImportEntityColumnType.timeseries; } private columnValid(column: CsvColumnParam): boolean {