Commit d038dfa1 authored by Roman's avatar Roman

BRCD-1681 feat(Play) - show play name for subscriber fields in report

parent af261900
......@@ -7,6 +7,7 @@ import {
getConfig,
createRateListNameByArgs,
sortFieldOption,
addPlayToFieldTitle,
} from '../common/Util';
import {
subscriberFieldsSelector,
......@@ -17,6 +18,7 @@ import {
usageTypeSelector,
fileTypeSelector,
eventCodeSelector,
availablePlaysLabelsSelector,
} from './settingsSelector';
import {
listByNameSelector,
......@@ -193,8 +195,14 @@ const reportLinesFieldsSelector = createSelector(
selectReportLinesFields,
);
const reportSubscriberFieldsSelector = createSelector(
const subscriberFieldsWithPlaySelector = createSelector(
subscriberFieldsSelector,
availablePlaysLabelsSelector,
(fields, plays) => fields.map(field => addPlayToFieldTitle(field, plays)),
);
const reportSubscriberFieldsSelector = createSelector(
subscriberFieldsWithPlaySelector,
() => 'subscribers',
mergeEntityAndReportConfigFields,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment