mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
cf36851265
replaces #41, #60 - update ember-suave and grunt-jscs to 3.0 - standardize Ember global de-structuring rules across app & tests
21 lines
445 B
JavaScript
21 lines
445 B
JavaScript
import Ember from 'ember';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
const {
|
|
computed,
|
|
isBlank,
|
|
Object: EmberObject
|
|
} = Ember;
|
|
|
|
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);
|
|
})
|
|
});
|