Sha256: d766a413b41458a842f415b25ade3d9fbcb7bd2474fb6c39c4089f08a39a6918
Contents?: true
Size: 837 Bytes
Versions: 25
Compression:
Stored size: 837 Bytes
Contents
import Route from "@ember/routing/route"; import { ajax } from "client-app/lib/utilities"; import Pattern from "client-app/models/pattern-item"; export default Route.extend({ model() { return ajax("/settings.json"); }, setupController(controller, model) { this._super(...arguments); const suppression = model.suppression; const codedSuppression = suppression .filter(p => p.hard) .map(hash => Pattern.create(hash)); const customSuppression = suppression .reject(p => p.hard) .map(hash => Pattern.create(hash)); const grouping = model.grouping.map(hash => Pattern.create(hash)); const showCodedSuppression = codedSuppression.length > 0; controller.setProperties({ showCodedSuppression, codedSuppression, customSuppression, grouping }); } });
Version data entries
25 entries across 25 versions & 1 rubygems