mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-07-05 14:02:10 +00:00
FIX: ability to import an exported query (#37)
This commit is contained in:
parent
844f96d146
commit
7193d11ee6
@ -18,7 +18,7 @@ export default Ember.Component.extend({
|
|||||||
const fileInput = this.element.querySelector("#js-file-input");
|
const fileInput = this.element.querySelector("#js-file-input");
|
||||||
this.set("fileInput", fileInput);
|
this.set("fileInput", fileInput);
|
||||||
|
|
||||||
$(fileInput).on("change", () => this.fileSelected(this.files));
|
$(fileInput).on("change", () => this.fileSelected(fileInput.files));
|
||||||
|
|
||||||
$this.on("dragover", e => {
|
$this.on("dragover", e => {
|
||||||
if (e.preventDefault) e.preventDefault();
|
if (e.preventDefault) e.preventDefault();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user