Sha256: 829751f40d83c474a253a84569186bcb36bd25b76f073fe0a146d47d0813e138

Contents?: true

Size: 620 Bytes

Versions: 32

Compression:

Stored size: 620 Bytes

Contents

import { default as EmberObject, computed } from "@ember/object";

export default EmberObject.extend({
  isNew: false,
  value: "",
  valueBuffer: "",
  error: null,
  saving: false,
  count: 0,

  init() {
    this._super(...arguments);
    this.set("valueBuffer", this.get("value"));
  },

  updateValue(newValue) {
    this.setProperties({
      value: newValue,
      valueBuffer: newValue
    });
  },

  hasBuffer: computed("value", "valueBuffer", function() {
    return this.get("value") !== this.get("valueBuffer");
  }),

  zeroCount: computed("count", function() {
    return this.get("count") <= 0;
  })
});

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
logster-2.11.4 client-app/app/models/pattern-item.js
logster-2.11.3 client-app/app/models/pattern-item.js
logster-2.11.2 client-app/app/models/pattern-item.js
logster-2.11.1 client-app/app/models/pattern-item.js
logster-2.11.0 client-app/app/models/pattern-item.js
logster-2.10.1 client-app/app/models/pattern-item.js
logster-2.10.0 client-app/app/models/pattern-item.js
logster-2.9.8 client-app/app/models/pattern-item.js
logster-2.9.7 client-app/app/models/pattern-item.js
logster-2.9.6 client-app/app/models/pattern-item.js
logster-2.9.5 client-app/app/models/pattern-item.js
logster-2.9.4 client-app/app/models/pattern-item.js
logster-2.9.3 client-app/app/models/pattern-item.js
logster-2.9.2 client-app/app/models/pattern-item.js
logster-2.9.1 client-app/app/models/pattern-item.js
logster-2.9.0 client-app/app/models/pattern-item.js
logster-2.8.0 client-app/app/models/pattern-item.js
logster-2.7.1 client-app/app/models/pattern-item.js
logster-2.7.0 client-app/app/models/pattern-item.js
logster-2.6.3 client-app/app/models/pattern-item.js