Ghost/ghost/admin/app/models/tier-benefit-item.js

23 lines
516 B
JavaScript
Raw Normal View History

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: 'tierBenefitItem',
isComplete: computed('name', function () {
let {name} = this;
return !isBlank(name);
}),
isBlank: computed('name', function () {
let {name} = this;
return isBlank(name);
})
});