Sha256: f79daa191b3b8239e51a4a4e0fb4b6e5f5b7f403f34bc919109a5d6aafccac3c

Contents?: true

Size: 493 Bytes

Versions: 12

Compression:

Stored size: 493 Bytes

Contents

({
  simpleGuardColumnRenderer(value, cell, obj) {
    if (value === undefined || value === null) {
      return value;
    }

    if (
      !(cell && cell.column && cell.column.config && cell.column.config.name)
    ) {
      return value;
    }

    if (!(obj && obj.data)) {
      return value;
    }

    const column_name = cell.column.config.name;
    const with_not = obj.data[`${column_name}_not`];

    if (with_not) {
      return `NOT (${value})`;
    }

    return value;
  }
});

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
marty-14.3.0 app/components/marty/base_rule_view/client/base_rule_view.js
marty-14.0.0 app/components/marty/base_rule_view/client/base_rule_view.js
marty-13.0.2 app/components/marty/base_rule_view/client/base_rule_view.js
marty-11.0.0 app/components/marty/base_rule_view/client/base_rule_view.js
marty-10.0.3 app/components/marty/base_rule_view/client/base_rule_view.js
marty-10.0.2 app/components/marty/base_rule_view/client/base_rule_view.js
marty-10.0.0 app/components/marty/base_rule_view/client/base_rule_view.js
marty-9.5.1 app/components/marty/base_rule_view/client/base_rule_view.js
marty-9.5.0 app/components/marty/base_rule_view/client/base_rule_view.js
marty-9.3.3 app/components/marty/base_rule_view/client/base_rule_view.js
marty-9.3.2 app/components/marty/base_rule_view/client/base_rule_view.js
marty-9.3.0 app/components/marty/base_rule_view/client/base_rule_view.js