mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
b235f68052
closes https://github.com/TryGhost/Ghost/issues/9735 - add "Username" form to Slack integration
18 lines
484 B
JavaScript
18 lines
484 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: '',
|
|
username: '',
|
|
|
|
validationType: 'slackIntegration',
|
|
|
|
isActive: computed('url', function () {
|
|
let url = this.get('url');
|
|
return !isBlank(url);
|
|
})
|
|
});
|