mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
refresh after proc exits to get proper file size
This commit is contained in:
parent
c1c473708b
commit
16916b5f54
@ -1176,7 +1176,7 @@ class FileUpload {
|
|||||||
window.alert(data);
|
window.alert(data);
|
||||||
})
|
})
|
||||||
this.proc.done((data) => {
|
this.proc.done((data) => {
|
||||||
|
this.nav_window_ref.refresh();
|
||||||
})
|
})
|
||||||
this.reader.onload = (function(uploader_ref) {
|
this.reader.onload = (function(uploader_ref) {
|
||||||
return async function(evt) {
|
return async function(evt) {
|
||||||
@ -1220,7 +1220,6 @@ class FileUpload {
|
|||||||
|
|
||||||
done() {
|
done() {
|
||||||
this.proc.input(); // close stdin
|
this.proc.input(); // close stdin
|
||||||
this.nav_window_ref.refresh();
|
|
||||||
this.remove_html_element();
|
this.remove_html_element();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user