mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
make eslint happy again
This commit is contained in:
parent
a9c0df0b58
commit
73a4a05c5b
@ -228,7 +228,7 @@ export default Ember.Component.extend({
|
||||
_bindUploadTarget() {
|
||||
this._unbindUploadTarget(); // in case it's still bound, let's clean it up first
|
||||
|
||||
let pasted = false;
|
||||
this._pasted = false;
|
||||
|
||||
const $element = this.$();
|
||||
const csrf = this.session.get('csrfToken');
|
||||
@ -240,14 +240,14 @@ export default Ember.Component.extend({
|
||||
pasteZone: $element,
|
||||
});
|
||||
|
||||
$element.on('fileuploadpaste', () => this.pasted = true);
|
||||
$element.on('fileuploadpaste', () => this._pasted = true);
|
||||
|
||||
$element.on('fileuploadsubmit', (e, data) => {
|
||||
const isPrivateMessage = this.get("composer.privateMessage");
|
||||
|
||||
data.formData = { type: "composer" }
|
||||
data.formData = { type: "composer" };
|
||||
if (isPrivateMessage) data.formData.for_private_message = true;
|
||||
if (this.pasted) data.formData.pasted = true;
|
||||
if (this._pasted) data.formData.pasted = true;
|
||||
|
||||
const opts = {
|
||||
isPrivateMessage,
|
||||
@ -266,7 +266,7 @@ export default Ember.Component.extend({
|
||||
});
|
||||
|
||||
$element.on("fileuploadsend", (e, data) => {
|
||||
this.pasted = false;
|
||||
this._pasted = false;
|
||||
this._validUploads++;
|
||||
this.appEvents.trigger('composer:insert-text', uploadPlaceholder);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user