TSK-1556: Fix indexing in workbasket access items
This commit is contained in:
parent
1a65a55948
commit
725679d77c
|
|
@ -115,7 +115,7 @@
|
||||||
|
|
||||||
<!-- CUSTOM FIELDS -->
|
<!-- CUSTOM FIELDS -->
|
||||||
<ng-container *ngFor="let customField of customFields$ | async; let customIndex = index">
|
<ng-container *ngFor="let customField of customFields$ | async; let customIndex = index">
|
||||||
<td
|
<td *ngIf="customField.visible"
|
||||||
[ngClass]="{ 'has-changes': accessItemsClone[index][getAccessItemCustomProperty(customIndex + 1)] !== accessItem.value[getAccessItemCustomProperty(customIndex+1)] }">
|
[ngClass]="{ 'has-changes': accessItemsClone[index][getAccessItemCustomProperty(customIndex + 1)] !== accessItem.value[getAccessItemCustomProperty(customIndex+1)] }">
|
||||||
<input class="workbasket-access-items__permission-checkbox" type="checkbox"
|
<input class="workbasket-access-items__permission-checkbox" type="checkbox"
|
||||||
id="checkbox-{{index}}-{{customIndex + 5}}"
|
id="checkbox-{{index}}-{{customIndex + 5}}"
|
||||||
|
|
|
||||||
|
|
@ -108,10 +108,7 @@ export class WorkbasketAccessItemsComponent implements OnInit, OnChanges, OnDest
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.customFields$ = this.accessItemsCustomization$.pipe(
|
this.customFields$ = this.accessItemsCustomization$.pipe(getCustomFields(customFieldCount));
|
||||||
getCustomFields(customFieldCount),
|
|
||||||
map((customFields) => customFields.filter((customisation) => customisation.visible))
|
|
||||||
);
|
|
||||||
|
|
||||||
this.accessItemsRepresentation$.pipe(takeUntil(this.destroy$)).subscribe((accessItemsRepresentation) => {
|
this.accessItemsRepresentation$.pipe(takeUntil(this.destroy$)).subscribe((accessItemsRepresentation) => {
|
||||||
if (typeof accessItemsRepresentation !== 'undefined') {
|
if (typeof accessItemsRepresentation !== 'undefined') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue