From c857e7d98cf2208f2508b838db6fe4de71ffbbfa Mon Sep 17 00:00:00 2001 From: oto-ciulis-tt <62436273+oto-ciulis-tt@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:35:14 -0800 Subject: [PATCH] feat: #270 Improve error view (#1617) * feat: #270 Improve error view Reverting change Lint & Format PR comments Fixing typo * nit --------- Co-authored-by: Oto Ciulis Co-authored-by: huchenlei --- src/i18n.ts | 12 +++++++++++ src/views/ServerStartView.vue | 38 ++++++++++++++++++++++++++++++----- 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/i18n.ts b/src/i18n.ts index 4357ce499..058614d28 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -53,6 +53,18 @@ const messages = { } } }, + serverStart: { + reinstall: 'Reinstall', + reportIssue: 'Report Issue', + openLogs: 'Open Logs', + process: { + 'initial-state': 'Loading...', + 'python-setup': 'Setting up Python Environment...', + 'starting-server': 'Starting ComfyUI server...', + ready: 'Finishing...', + error: 'Unable to start ComfyUI' + } + }, firstTimeUIMessage: 'This is the first time you use the new UI. Choose "Menu > Use New Menu > Disabled" to restore the old UI.', download: 'Download', diff --git a/src/views/ServerStartView.vue b/src/views/ServerStartView.vue index db0543507..b415eda3b 100644 --- a/src/views/ServerStartView.vue +++ b/src/views/ServerStartView.vue @@ -2,23 +2,45 @@
-

{{ ProgressMessages[status] }}

+

{{ t(`serverStart.process.${status}`) }}

+
+