Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 395: Line 395:
 
             // If filtering property is empty, don't apply the filter (set the check to true).
 
             // If filtering property is empty, don't apply the filter (set the check to true).
 
             // Passing an empty object (as with applyFilters(true)) should result in an unfiltered table.
 
             // Passing an empty object (as with applyFilters(true)) should result in an unfiltered table.
 +
 +
            // TEMPORARY!!!
 +
            const dctFunctions = Array.from(dct.functions.values()).map(val => val.functions).flat()
 +
            // TEMPORARY!!!
 +
            // TODO: REWORK
 +
            const functionsCheck = filterState.functions
 +
                ? dctFunctions.some(func => filterState.functions.includes(func))
 +
                : true;
 
             const sourcesCheck = filterState.dataSources
 
             const sourcesCheck = filterState.dataSources
 
                 ? dct.dataSources.some(source => filterState.dataSources.includes(source))
 
                 ? dct.dataSources.some(source => filterState.dataSources.includes(source))
                : true;
 
            const functionsCheck = filterState.functions
 
                ? dct.functions.some(func => filterState.functions.includes(func))
 
 
                 : true;
 
                 : true;
 
             const businessModelCheck = filterState.businessModel
 
             const businessModelCheck = filterState.businessModel

Revision as of 17:47, 17 November 2022

Development verstion of the DCT List.
Not ready for production!