95
95
96
96
<script setup lang="ts">
97
97
import {
98
+ InstallStage ,
98
99
type InstallStageInfo ,
99
100
type InstallStageType ,
100
101
ProgressStatus
@@ -148,7 +149,8 @@ const currentStatusLabel = computed(() => {
148
149
})
149
150
150
151
const isError = computed (
151
- () => props .status === ProgressStatus .ERROR || installStage .value === ' error'
152
+ () =>
153
+ props .status === ProgressStatus .ERROR || installStage .value === InstallStage .ERROR
152
154
)
153
155
154
156
// Display properties for StartupDisplay component
@@ -159,13 +161,13 @@ const displayTitle = computed(() => {
159
161
// Use the stage label as title if we're in an installation stage
160
162
if (installStage .value && STAGE_METADATA [installStage .value ]) {
161
163
// For certain installation stages, use custom titles
162
- const installationStages = [
163
- ' install_options_selection ' ,
164
- ' creating_directories ' ,
165
- ' initializing_config ' ,
166
- ' python_environment_setup ' ,
167
- ' installing_requirements ' ,
168
- ' migrating_custom_nodes '
164
+ const installationStages: InstallStageType [] = [
165
+ InstallStage . INSTALL_OPTIONS_SELECTION ,
166
+ InstallStage . CREATING_DIRECTORIES ,
167
+ InstallStage . INITIALIZING_CONFIG ,
168
+ InstallStage . PYTHON_ENVIRONMENT_SETUP ,
169
+ InstallStage . INSTALLING_REQUIREMENTS ,
170
+ InstallStage . MIGRATING_CUSTOM_NODES
169
171
]
170
172
if (installationStages .includes (installStage .value )) {
171
173
return t (' serverStart.installation.title' )
0 commit comments