-
-
-
+ {!hideGlobalFilter && (
+
+
+
+ )}
-
+ {!hideGlobalFilter && (
+
+ )}
@@ -487,8 +519,47 @@ const OperationalNeedsTable = ({
{t('itSolutionsTable.noNeedsInfo')}
)}
+
+ {filterSolutions && (
+
+ )}
);
};
+export const FilterViewSolutionsAlert = ({
+ filterSolutions,
+ operationalNeeds
+}: {
+ filterSolutions: OperationalSolutionKey[];
+ operationalNeeds: any[];
+}) => {
+ const { t } = useTranslation('itSolutions');
+
+ const unusedSolutions = filterSolutions.filter(
+ solution => !operationalNeeds.find((need: any) => need.key === solution)
+ );
+
+ if (unusedSolutions.length === 0) return null;
+
+ return (
+
+ {t('itSolutionsTable.unusedSolutionsAlert')}
+
+ {helpSolutions
+ .filter(solution => unusedSolutions.includes(solution.enum))
+ .map(solution => (
+ -
+ {solution.name}
+ {solution.acronym ? ` (${solution.acronym})` : ''}
+
+ ))}
+
+
+ );
+};
+
export default OperationalNeedsTable;