Fixed new file event emitter
This commit is contained in:
parent
6019a14952
commit
f3cb55f2c2
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngFor="let config of displayedAttributes" class="cell">
|
<div *ngFor="let config of displayedAttributes" class="cell">
|
||||||
{{ file.fileAttributes.attributeIdToValue[config.id] }}
|
{{ file.fileAttributes.attributeIdToValue[config.id] || '-' }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- always show A for error-->
|
<!-- always show A for error-->
|
||||||
|
|||||||
@ -175,11 +175,7 @@ export class ConfigService {
|
|||||||
dynamicFilters.set(filterKey, new Set<string>());
|
dynamicFilters.set(filterKey, new Set<string>());
|
||||||
filters = dynamicFilters.get(filterKey);
|
filters = dynamicFilters.get(filterKey);
|
||||||
}
|
}
|
||||||
let filterValue = file.fileAttributes?.attributeIdToValue[config.id];
|
const filterValue = file.fileAttributes?.attributeIdToValue[config.id];
|
||||||
if (!filterValue) {
|
|
||||||
filterValue = '-';
|
|
||||||
file.fileAttributes.attributeIdToValue[config.id] = '-';
|
|
||||||
}
|
|
||||||
filters.add(filterValue);
|
filters.add(filterValue);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -257,7 +253,7 @@ export class ConfigService {
|
|||||||
(value: string) =>
|
(value: string) =>
|
||||||
new NestedFilter({
|
new NestedFilter({
|
||||||
id: value,
|
id: value,
|
||||||
label: value === '-' ? this._translateService.instant('filters.empty') : value,
|
label: value === undefined ? this._translateService.instant('filters.empty') : value,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
checker: (input: File, filter: INestedFilter) => filter.id === input.fileAttributes.attributeIdToValue[id],
|
checker: (input: File, filter: INestedFilter) => filter.id === input.fileAttributes.attributeIdToValue[id],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user