From 4629e0557f713c81b703eeaf66123a5f946d4314 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 16 Oct 2026 12:06:54 +0300 Subject: [PATCH] feat(storages): the upload dialog closes once an upload starts The job panel follows an ISO upload, so the dialog closes when the first chunk is accepted and its progress bar goes; the dialog opens again with the error if the upload stops. The browser still sends the file, so the page asks before it is left while an upload runs. The storage page no longer includes the please-wait dialog, which nothing on it opened. --- README.md | 2 +- storages/templates/create_stg_vol_block.html | 5 ----- storages/templates/storage.html | 19 +++++++++---------- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index b198a120..4d193165 100644 --- a/README.md +++ b/README.md @@ -604,7 +604,7 @@ When the restored version predates the worker, `supervisorctl` reports that `web - Cloning a VM or a volume and creating a VM run as jobs: the page returns at once and the job panel follows them. The API's VM create answers 202 with the job and needs a new `submission_key` per request. The create form no longer takes a console password; set it on the VM page. - Taking and reverting a snapshot run as jobs, like deleting an external snapshot: the page returns at once and the job panel follows them. Deleting an internal snapshot stays immediate. - Migrating a VM runs as a job: the page returns at once, the job panel shows its progress, and a running migration can be cancelled there (the VM keeps running on its source host). The 540 s limit is gone. The API's migrate answers 202 with the job and needs a new `submission_key` per request. -- Uploading an ISO is tracked as a job: the storage page's job panel shows it and can cancel it, and the page no longer reloads when it ends. An upload left idle for an hour is ended and its partial file deleted. +- Uploading an ISO is tracked as a job: the storage page's job panel shows it and can cancel it, and the page no longer reloads when it ends. The upload dialog closes once the upload starts; the browser still sends the file, so stay on the page until it ends. An upload left idle for an hour is ended and its partial file deleted. - Manual installs that keep their own `settings.py` copy the SQLite `OPTIONS` and `TEST` entries from `settings.py.template` and add `"operations"` to `INSTALLED_APPS`. - The SQLite database must be on a local file system (WAL). - Outside compose, stop the Docker container with `docker stop -t 95` so the worker can finish running jobs. diff --git a/storages/templates/create_stg_vol_block.html b/storages/templates/create_stg_vol_block.html index f418b8ba..d17a6687 100644 --- a/storages/templates/create_stg_vol_block.html +++ b/storages/templates/create_stg_vol_block.html @@ -28,11 +28,6 @@ {% trans "Starting upload..." %} -