mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: when changing category, watch for pasted link in title field
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user