mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
[Electron] Add version number to error state (#1707)
This commit is contained in:
@@ -62,7 +62,7 @@ export default {
|
||||
'python-setup': 'Setting up Python Environment...',
|
||||
'starting-server': 'Starting ComfyUI server...',
|
||||
ready: 'Finishing...',
|
||||
error: 'Unable to start ComfyUI'
|
||||
error: 'Unable to start ComfyUI Desktop'
|
||||
}
|
||||
},
|
||||
serverConfig: {
|
||||
|
||||
@@ -2,9 +2,14 @@
|
||||
<div
|
||||
class="font-sans flex flex-col justify-center items-center h-screen m-0 text-neutral-300 bg-neutral-900 dark-theme pointer-events-auto"
|
||||
>
|
||||
<h2 class="text-2xl font-bold">{{ t(`serverStart.process.${status}`) }}</h2>
|
||||
<h2 class="text-2xl font-bold">
|
||||
{{ t(`serverStart.process.${status}`) }}
|
||||
<span v-if="status === ProgressStatus.ERROR">
|
||||
v{{ electronVersion }}
|
||||
</span>
|
||||
</h2>
|
||||
<div
|
||||
v-if="status == ProgressStatus.ERROR"
|
||||
v-if="status === ProgressStatus.ERROR"
|
||||
class="flex items-center my-4 gap-2"
|
||||
>
|
||||
<Button
|
||||
@@ -43,6 +48,7 @@ const electron = electronAPI()
|
||||
const { t } = useI18n()
|
||||
|
||||
const status = ref<ProgressStatus>(ProgressStatus.INITIAL_STATE)
|
||||
const electronVersion = ref<string>('')
|
||||
let xterm: Terminal | undefined
|
||||
|
||||
const updateProgress = ({ status: newStatus }: { status: ProgressStatus }) => {
|
||||
@@ -72,9 +78,10 @@ const reportIssue = () => {
|
||||
}
|
||||
const openLogs = () => electron.openLogsFolder()
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
electron.sendReady()
|
||||
electron.onProgressUpdate(updateProgress)
|
||||
electronVersion.value = await electron.getElectronVersion()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user