Skip to content

Commit

Permalink
feat: add healthcheck status displaying
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <[email protected]>
  • Loading branch information
andrey18106 committed Apr 17, 2024
1 parent d025653 commit 725b245
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mixins/AppManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
return this.app && this.$store.getters.loading(this.app.id)
},
isInitializing() {
return this.app && Object.hasOwn(this.app?.status, 'action') && this.app.status.action === 'init'
return this.app && Object.hasOwn(this.app?.status, 'action') && (this.app.status.action === 'init' || this.app.status.action === 'healthcheck')
},
isDeploying() {
return this.app && Object.hasOwn(this.app?.status, 'action') && this.app.status.action === 'deploy'
Expand All @@ -31,6 +31,9 @@ export default {
if (this.app && Object.hasOwn(this.app?.status, 'action') && this.app.status.action === 'init') {
return t('app_api', '{progress}% Initializing', { progress: this.app.status?.init })
}
if (this.app && Object.hasOwn(this.app?.status, 'action') && this.app.status.action === 'healthcheck') {
return t('app_api', 'Healthcheck')
}
if (this.app.needsDownload) {
return t('app_api', 'Deploy and Enable')
}
Expand All @@ -43,6 +46,9 @@ export default {
if (this.app && Object.hasOwn(this.app?.status, 'action') && this.app.status.action === 'init') {
return t('app_api', '{progress}% Initializing', { progress: this.app.status?.init })
}
if (this.app && Object.hasOwn(this.app?.status, 'action') && this.app.status.action === 'healthcheck') {
return t('app_api', 'Healthcheck')
}
return t('app_api', 'Disable')
},
forceEnableButtonText() {
Expand Down

0 comments on commit 725b245

Please sign in to comment.