mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat(upgrader): add test commit and restart functionality
This commit is contained in:
parent
9f6f9088c4
commit
5c2621aaa6
5 changed files with 120 additions and 8 deletions
|
@ -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,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue