condense uploads listing on view change

This commit is contained in:
ed 2023-02-14 21:58:15 +00:00
parent 8adfcf5950
commit 6eba9feffe
3 changed files with 9 additions and 2 deletions

View file

@ -1421,7 +1421,7 @@ class HttpCli(object):
self.log(t, 1)
raise Pebkac(403, t)
if is_put and not self.args.no_dav:
if is_put and not (self.args.no_dav or self.args.nw):
# allow overwrite if...
# * volflag 'daw' is set
# * and account has delete-access

View file

@ -2269,6 +2269,7 @@ class Up2k(object):
if (
not ret["hash"]
and "fk" in vfs.flags
and not self.args.nw
and (cj["user"] in vfs.axs.uread or cj["user"] in vfs.axs.upget)
):
ap = absreal(djoin(job["ptop"], job["prel"], job["name"]))

View file

@ -1452,7 +1452,7 @@ function up2k_init(subtle) {
});
};
var etaref = 0, etaskip = 0, utw_minh = 0, utw_read = 0;
var etaref = 0, etaskip = 0, utw_minh = 0, utw_read = 0, utw_card = 0;
function etafun() {
var nhash = st.busy.head.length + st.busy.hash.length + st.todo.head.length + st.todo.hash.length,
nsend = st.busy.upload.length + st.todo.upload.length,
@ -1465,6 +1465,12 @@ function up2k_init(subtle) {
//ebi('acc_info').innerHTML = humantime(st.time.busy) + ' ' + f2f(now / 1000, 1);
if (utw_card != pvis.act) {
utw_card = pvis.act;
utw_read = 9001;
ebi('u2tabw').style.minHeight = '0px';
}
if (++utw_read >= 20) {
utw_read = 0;
utw_minh = parseInt(ebi('u2tabw').style.minHeight || '0');