mirror of https://github.com/jetkvm/kvm.git
Compare commits
6 Commits
62755961e6
...
bb21e2c2d6
| Author | SHA1 | Date |
|---|---|---|
|
|
bb21e2c2d6 | |
|
|
4090592112 | |
|
|
a741bbe7e3 | |
|
|
1f7083a023 | |
|
|
dc7791c245 | |
|
|
9affd248f3 |
|
|
@ -417,7 +417,7 @@ export default function WebRTCVideo({ hasConnectionIssues }: { hasConnectionIssu
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isRelativeMouseMode) {
|
if (isRelativeMouseMode) {
|
||||||
videoElmRefValue.addEventListener("click",
|
containerRef.current?.addEventListener("click",
|
||||||
() => {
|
() => {
|
||||||
if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) {
|
if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) {
|
||||||
requestPointerLock();
|
requestPointerLock();
|
||||||
|
|
|
||||||
|
|
@ -313,6 +313,8 @@ export default function SettingsAdvancedRoute() {
|
||||||
text={m.advanced_reset_config_button()}
|
text={m.advanced_reset_config_button()}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
handleResetConfig();
|
handleResetConfig();
|
||||||
|
// Add 2s delay between resetting the configuration and calling reload() to prevent reload from interrupting the RPC call to reset things.
|
||||||
|
await sleep(2000);
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ export default function SettingsGeneralRebootRoute() {
|
||||||
|
|
||||||
const onClose = useCallback(() => {
|
const onClose = useCallback(() => {
|
||||||
navigate(".."); // back to the devices.$id.settings page
|
navigate(".."); // back to the devices.$id.settings page
|
||||||
|
// Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation.
|
||||||
|
await sleep(1000);
|
||||||
window.location.reload(); // force a full reload to ensure the current device/cloud UI version is loaded
|
window.location.reload(); // force a full reload to ensure the current device/cloud UI version is loaded
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ export default function SettingsGeneralUpdateRoute() {
|
||||||
|
|
||||||
const onClose = useCallback(() => {
|
const onClose = useCallback(() => {
|
||||||
navigate(".."); // back to the devices.$id.settings page
|
navigate(".."); // back to the devices.$id.settings page
|
||||||
|
// Add 1s delay between navigation and calling reload() to prevent reload from interrupting the navigation.
|
||||||
|
await sleep(1000);
|
||||||
window.location.reload(); // force a full reload to ensure the current device/cloud UI version is loaded
|
window.location.reload(); // force a full reload to ensure the current device/cloud UI version is loaded
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue