FIX: when changing category, watch for pasted link in title field

This commit is contained in:
Neil Lalonde 2016-12-21 14:56:59 -05:00
parent e85904b98f
commit eb23a8c173

View File

@ -31,7 +31,7 @@ export default Ember.Component.extend({
}
},
@observes('composer.titleLength')
@observes('composer.titleLength', 'watchForLink')
_titleChanged() {
if (this.get('composer.titleLength') === 0) { this.set('autoPosted', false); }
if (this.get('autoPosted') || !this.get('watchForLink')) { return; }