@hmcts/ccd-case-ui-toolkit 7.3.39-exui-4089 → 7.3.39-exui-4089-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36530,8 +36530,7 @@ class CaseFullAccessViewComponent {
|
|
|
36530
36530
|
}
|
|
36531
36531
|
hasActiveCaseFlags() {
|
|
36532
36532
|
// Determine which tab contains the FlagLauncher CaseField type, from the CaseView object in the snapshot data
|
|
36533
|
-
const caseFlagsTab = this.caseDetails?.tabs?.
|
|
36534
|
-
?? null;
|
|
36533
|
+
const caseFlagsTab = this.caseDetails?.tabs?.find((tab) => tab.fields?.some((caseField) => FieldsUtils.isFlagLauncherCaseField(caseField))) ?? null;
|
|
36535
36534
|
if (caseFlagsTab) {
|
|
36536
36535
|
// Check whether the FlagLauncher CaseField is in external mode or not; the notification banner should not be
|
|
36537
36536
|
// displayed for external users
|
|
@@ -36592,7 +36591,10 @@ class CaseFullAccessViewComponent {
|
|
|
36592
36591
|
}
|
|
36593
36592
|
}
|
|
36594
36593
|
sortTabFieldsAndFilterTabs(tabs) {
|
|
36595
|
-
return tabs?.map((tab) =>
|
|
36594
|
+
return tabs?.map((tab) => ({
|
|
36595
|
+
...tab,
|
|
36596
|
+
fields: this.orderService.sort(tab.fields)
|
|
36597
|
+
}))
|
|
36596
36598
|
.filter((tab) => ShowCondition.getInstance(tab.show_condition).matchByContextFields(this.caseFields));
|
|
36597
36599
|
}
|
|
36598
36600
|
getTabFields() {
|