Skip to content

Commit

Permalink
fixed update ui not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
iWirk committed Sep 27, 2022
1 parent 4eb26a7 commit 9088609
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/js/Pages/Settings/Components/UpdateSettingsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<jet-form-section>
<template #title>
Update Settings Test 2
Update Settings
</template>

<template #description>
Expand Down Expand Up @@ -127,13 +127,17 @@ export default class UpdateSettingsForm extends Mixins(Route) {
}
async upgradeCp() {
await axios.get(this.route('settings.upgrade.cp'))
this.isUpdating = true
await axios.get(this.route('settings.upgrade.cp', { timeout: 2000 }))
const health = await this.waitForUpdate()
if (health.status === 'OK') {
// eslint-disable-next-line no-restricted-globals
location.reload()
} else {
this.isUpdating = false
this.updateFailed = true
}
}
Expand Down

0 comments on commit 9088609

Please sign in to comment.