import computed from 'ember-computed'; import {isBlank} from 'ember-utils'; import EmberObject from 'ember-object'; import ValidationEngine from 'ghost-admin/mixins/validation-engine'; export default EmberObject.extend(ValidationEngine, { // values entered here will act as defaults url: '', validationType: 'slackIntegration', isActive: computed('url', function () { let url = this.get('url'); return !isBlank(url); }) });