Add client apply flow and asset uploads
This commit is contained in:
@@ -19,6 +19,8 @@ const eulaBlock = document.getElementById('eulaBlock')
|
||||
const eulaText = document.getElementById('eulaText')
|
||||
const eulaLink = document.getElementById('eulaLink')
|
||||
const startInstallButton = document.getElementById('startInstallButton')
|
||||
const applyClientButton = document.getElementById('applyClientButton')
|
||||
const clientApplyStatus = document.getElementById('clientApplyStatus')
|
||||
|
||||
function setActiveStep(step) {
|
||||
for (const [key, panel] of panelMap.entries()) {
|
||||
@@ -275,6 +277,18 @@ document.getElementById('toStep7').addEventListener('click', async () => {
|
||||
await goToStep(7)
|
||||
})
|
||||
|
||||
applyClientButton.addEventListener('click', async () => {
|
||||
applyClientButton.disabled = true
|
||||
clientApplyStatus.textContent = '클라이언트 적용 중입니다.'
|
||||
try {
|
||||
const result = await window.installerApi.applyClient()
|
||||
clientApplyStatus.textContent = result.message
|
||||
await goToStep(result.nextStep)
|
||||
} finally {
|
||||
applyClientButton.disabled = false
|
||||
}
|
||||
})
|
||||
|
||||
document.getElementById('openFolderButton').addEventListener('click', async () => {
|
||||
await window.installerApi.openFolder()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user