1
0
Fork 0
Dieser Commit ist enthalten in:
Angus McLeod 2022-08-15 16:16:18 +02:00
Ursprung 1f254732da
Commit 81680033a7

Datei anzeigen

@ -68,7 +68,7 @@ export default Controller.extend({
file: null, file: null,
filename: null, filename: null,
}); });
document.getElementById('custom-wizard-file-upload').value = ''; document.getElementById("custom-wizard-file-upload").value = "";
}, },
@observes("importing", "destroying") @observes("importing", "destroying")
@ -83,7 +83,7 @@ export default Controller.extend({
actions: { actions: {
upload() { upload() {
document.getElementById('custom-wizard-file-upload').click(); document.getElementById("custom-wizard-file-upload").click();
}, },
clearFile() { clearFile() {
@ -102,7 +102,7 @@ export default Controller.extend({
if (maxFileSize < file.size) { if (maxFileSize < file.size) {
this.setMessage("error", "file_size_error"); this.setMessage("error", "file_size_error");
this.set("file", null); this.set("file", null);
document.getElementById('custom-wizard-file-upload').value = ''; document.getElementById("custom-wizard-file-upload").value = "";
} else { } else {
this.setProperties({ this.setProperties({
file, file,