mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
983110d931
no issue - add eslint-plugin-ember, configure no-old-shims rule - run `eslint --fix` on `app`, `lib`, `mirage`, and `tests` to move imports to the new module imports - further cleanup of Ember globals usage - remove event-dispatcher initializer now that `canDispatchToEventManager` is deprecated
17 lines
466 B
JavaScript
17 lines
466 B
JavaScript
import EmberObject from '@ember/object';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
import {computed} from '@ember/object';
|
|
import {isBlank} from '@ember/utils';
|
|
|
|
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);
|
|
})
|
|
});
|