mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1453: #3682 AHF // Reservierungsliste - RadionButton ein- und ausblenden bei Paid/Unpaid
#3682 AHF // Reservierungsliste - Radion-Button ein- und ausblenden bei Bezahlt vs Nicht Bezahlt Related work items: #3682
This commit is contained in:
committed by
Nino Righi
parent
f344c2b0e8
commit
69c23a55f7
@@ -13,7 +13,9 @@ export class GoodsInReservationSelectablePipe implements PipeTransform {
|
||||
if (selectedItems.length > 0) {
|
||||
const firstSelectedItem = selectedItems[0];
|
||||
const selectedLabel = firstSelectedItem.actions.find((action) => selectionRules(action)).label;
|
||||
return item?.actions?.some((action) => selectionRules(action) && action.label === selectedLabel);
|
||||
return item?.actions?.some(
|
||||
(action) => selectionRules(action) && action.label === selectedLabel && item?.features?.paid === firstSelectedItem?.features?.paid
|
||||
);
|
||||
} else {
|
||||
return item?.actions?.some((action) => selectionRules(action));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user