Commit c505fd58 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

PrettyFilters: booleans

parent 183e945b
......@@ -103,6 +103,13 @@ function getLabelName(path, value, lookups, prefix, t) {
// join
.join('.');
if (typeof name === 'boolean') {
if (name) {
return t(`f.${prefix}.${prettyPath}`);
}
return t('f.NOT', {what: t(`f.${prefix}.${prettyPath.replace(/^NOT\./, '')}`)});
}
const translatedPrettyPath = prettyPath.startsWith('NOT') ?
t('f.NOT', {what: t(`f.${prefix}.${prettyPath.replace(/^NOT\./, '')}`)})
:
......
Supports Markdown
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