Ghost/ghost/admin/app/models/product-benefit-item.js
Kevin Ansfield 57b1ab4800 Ran ember-cli-update --run-codemods (#2219)
no issue

- part of ember upgrades
- removed all unnecessary usage of `.get`
- cleaned up imports where we had imports from the same module across multiple lines
- standardized on importing specific computed helpers rather than using `computed.foo`
- switched tests from using `wait()` to `settled()`
2022-01-21 19:25:47 +00:00

23 lines
519 B
JavaScript

import EmberObject, {computed} from '@ember/object';
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
import {isBlank} from '@ember/utils';
export default EmberObject.extend(ValidationEngine, {
name: '',
isNew: false,
validationType: 'productBenefitItem',
isComplete: computed('name', function () {
let {name} = this;
return !isBlank(name);
}),
isBlank: computed('name', function () {
let {name} = this;
return isBlank(name);
})
});