镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 25aa2b7

Browse files
chrisbbreuerclaude
andcommitted
style(components): format the settings update view
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 3dff5e6 commit 25aa2b7

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎packages/components/src/ui/settings/update.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,26 @@ export function settingsUpdateView(status: Partial<SettingsUpdateStatus> | null
9494

9595
switch (status.state) {
9696
case 'unavailable':
97-
return view(why || `${app} cannot update itself.`, null)
97+
return view(why || `${app} cannot update itself.`, null)
9898
case 'idle':
99-
return view('Check for a newer version.', 'check')
99+
return view('Check for a newer version.', 'check')
100100
case 'checking':
101-
return view('Checking for updates...', 'check', { busy: true })
101+
return view('Checking for updates...', 'check', { busy: true })
102102
case 'current':
103-
return view(`${app} is up to date.`, 'check')
103+
return view(`${app} is up to date.`, 'check')
104104
case 'available':
105-
return canInstall
106-
? view(`${update} is available.`, 'install')
107-
: view(`${update} is available. ${why || `${app} cannot update itself.`}`, 'check')
105+
return canInstall
106+
? view(`${update} is available.`, 'install')
107+
: view(`${update} is available. ${why || `${app} cannot update itself.`}`, 'check')
108108
case 'downloading':
109-
return view(`Downloading ${next ? `version ${next}` : 'the update'}...`, 'install', { busy: true, progress: percent(status.progress) })
109+
return view(`Downloading ${next ? `version ${next}` : 'the update'}...`, 'install', { busy: true, progress: percent(status.progress) })
110110
case 'installing':
111-
return view(`Installing ${next ? `version ${next}` : 'the update'}...`, 'install', { busy: true })
111+
return view(`Installing ${next ? `version ${next}` : 'the update'}...`, 'install', { busy: true })
112112
case 'installed':
113-
return view(`${update} is installed. Restart ${app} to finish updating.`, 'relaunch')
113+
return view(`${update} is installed. Restart ${app} to finish updating.`, 'relaunch')
114114
case 'error':
115-
return view(String(status.error || '').trim() || 'The update could not be completed.', 'check', { failed: true })
115+
return view(String(status.error || '').trim() || 'The update could not be completed.', 'check', { failed: true })
116116
default:
117-
return view('', null)
117+
return view('', null)
118118
}
119119
}

0 commit comments

Comments
 (0)