Compare commits

...

3 Commits

Author SHA1 Message Date
Aveline 406186dbdd
Merge 0baf6be8b5 into 4090592112 2025-11-04 15:12:09 +01:00
Marc Brooks 4090592112
chore: add delay before forced page-reload (#916) 2025-11-04 15:12:03 +01:00
Siyuan Miao 0baf6be8b5 chore: generate release automatically 2025-09-25 16:55:04 +00:00
4 changed files with 27 additions and 1 deletions

View File

@ -69,3 +69,23 @@ jobs:
path: |
bin/jetkvm_app
device-tests.tar.gz
release:
runs-on: ubuntu-latest
name: Release
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Draft release
uses: softprops/action-gh-release@v2
with:
# need review before making a real release
draft: true
files: bin/jetkvm_app
fail_on_unmatched_files: true
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
generate_release_notes: true

View File

@ -313,6 +313,8 @@ export default function SettingsAdvancedRoute() {
text={m.advanced_reset_config_button()}
onClick={() => {
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();
}}
/>

View File

@ -11,6 +11,8 @@ export default function SettingsGeneralRebootRoute() {
const onClose = useCallback(() => {
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
}, [navigate]);

View File

@ -23,6 +23,8 @@ export default function SettingsGeneralUpdateRoute() {
const onClose = useCallback(() => {
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
}, [navigate]);