mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
no issue - updates `package.json` details to better reflect the separation from the `Ghost` package - update ember config and all import statements to reflect the new `ghost-admin` module name in `package.json`
20 lines
421 B
JavaScript
20 lines
421 B
JavaScript
import Ember from 'ember';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
const {
|
|
computed,
|
|
isBlank
|
|
} = Ember;
|
|
|
|
export default Ember.Object.extend(ValidationEngine, {
|
|
// values entered here will act as defaults
|
|
url: '',
|
|
|
|
validationType: 'slackIntegration',
|
|
|
|
isActive: computed('url', function () {
|
|
let url = this.get('url');
|
|
return !isBlank(url);
|
|
})
|
|
});
|