feat(upgrader): add test commit and restart functionality

This commit is contained in:
Jacky 2025-05-05 12:22:44 +00:00
parent 9f6f9088c4
commit 5c2621aaa6
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
5 changed files with 120 additions and 8 deletions

View file

@ -67,6 +67,10 @@ const dryRun = computed(() => {
return !!route.query.dry_run
})
const testCommitAndRestart = computed(() => {
return !!route.query.test_commit_and_restart
})
async function performUpgrade() {
progressStatus.value = 'active'
modalClosable.value = false
@ -84,6 +88,7 @@ async function performUpgrade() {
ws.send(JSON.stringify({
dry_run: dryRun.value,
channel: channel.value,
test_commit_and_restart: testCommitAndRestart.value,
}))
}