mirror of
https://github.com/9001/copyparty.git
synced 2025-10-01 22:22:26 -06:00
fix upload/filesearch default when preference is not set;
ui would enter a confusing state when hopping between a folder with write-permissions and one without
This commit is contained in:
parent
0c03921965
commit
51a83b04a0
|
@ -2868,6 +2868,8 @@ function up2k_init(subtle) {
|
||||||
new_state = false;
|
new_state = false;
|
||||||
fixed = true;
|
fixed = true;
|
||||||
}
|
}
|
||||||
|
if (new_state === undefined)
|
||||||
|
new_state = can_write ? false : have_up2k_idx ? true : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_state === undefined)
|
if (new_state === undefined)
|
||||||
|
|
Loading…
Reference in a new issue