mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 17:33:27 +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() {
|
_titleChanged() {
|
||||||
if (this.get('composer.titleLength') === 0) { this.set('autoPosted', false); }
|
if (this.get('composer.titleLength') === 0) { this.set('autoPosted', false); }
|
||||||
if (this.get('autoPosted') || !this.get('watchForLink')) { return; }
|
if (this.get('autoPosted') || !this.get('watchForLink')) { return; }
|
||||||
|
Reference in New Issue
Block a user