Sha256: 8cb542882108aa021398342ac52a616f3e1add90870f2589bc46755629d135a0

Contents?: true

Size: 783 Bytes

Versions: 15

Compression:

Stored size: 783 Bytes

Contents

import classic from "ember-classic-decorator";
import { reads } from "@ember/object/computed";
import Message from "client-app/models/message";
import EmberObject, { computed } from "@ember/object";
import { ajax } from "client-app/lib/utilities";

@classic
export default class Group extends EmberObject {
  selected = false;
  showCount = true;

  @reads("regex") key;
  @reads("messages.firstObject.message") displayMessage;

  init() {
    super.init(...arguments);
    const messages = this.messages.map((m) => Message.create(m));
    this.set("messages", messages);
  }

  @computed
  get glyph() {
    return "clone";
  }

  @computed
  get prefix() {
    return "far";
  }

  solveAll() {
    return ajax("/solve-group", { type: "POST", data: { regex: this.regex } });
  }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
logster-2.20.1 client-app/app/models/group.js
logster-2.20.0 client-app/app/models/group.js
logster-2.19.1 client-app/app/models/group.js
logster-2.19.0 client-app/app/models/group.js
logster-2.18.1 client-app/app/models/group.js
logster-2.18.0 client-app/app/models/group.js
logster-2.17.1 client-app/app/models/group.js
logster-2.17.0 client-app/app/models/group.js
logster-2.16.0 client-app/app/models/group.js
logster-2.15.0 client-app/app/models/group.js
logster-2.14.0 client-app/app/models/group.js
logster-2.13.1 client-app/app/models/group.js
logster-2.13.0 client-app/app/models/group.js
logster-2.12.2 client-app/app/models/group.js
logster-2.12.1 client-app/app/models/group.js