Skip to content
Snippets Groups Projects

Fix/bug from uc6

Merged Baptiste Toulemonde requested to merge fix/bug_from_UC6 into master
@@ -13,8 +13,7 @@
<input type="file" id="file" (change)="importJson($event)" accept=".json" />
</div>
<ng-container
*ngFor="let dataset of obsDcatVocabulary | async; let index = index ;trackBy:trackByIndex ;">
<ng-container *ngFor="let dataset of obsDcatVocabulary | async; let index = index ;trackBy:trackByIndex ;">
<nb-form-field>
<div class="row">
@@ -42,7 +41,7 @@
*ngIf="dataset.identifier === 'dct:hasVersion' || dataset.identifier === 'dct:title' "
required #autoInput #{{dataset.identifier}}="ngModel" fullWidth
id="{{dataset.identifier}}" name="{{dataset.identifier}}" nbInput
(ngModelChange)="onModelChange($event)" [nbAutocomplete]="auto"
(ngModelChange)="onModelChange($event)" [nbAutocomplete]="auto"
[(ngModel)]="selectedPaths[index]" autocomplete="false" (focus)="reset()" />
<div
*ngIf="dataset.identifier.invalid && (dataset.identifier.dirty || dataset.identifier.touched)">
@@ -51,9 +50,9 @@
*ngIf=" dataset.identifier !== 'dct:hasVersion' && dataset.identifier !== 'dct:title'"
#autoInput #{{dataset.identifier}}="ngModel" fullWidth
id="{{dataset.identifier}}" name="{{dataset.identifier}}" nbInput
(ngModelChange)="onModelChange($event)" [nbAutocomplete]="auto"
(ngModelChange)="onModelChange($event)" [nbAutocomplete]="auto"
[(ngModel)]="selectedPaths[index]" autocomplete="false" (focus)="reset()" />
<nb-autocomplete #auto>
<nb-option *ngFor="let option of filteredOptions | async" [value]="option">
Loading