Add About to Help menu (#2010)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2024-12-23 08:17:25 +11:00
committed by GitHub
parent c3ceef0461
commit 3767749398
14 changed files with 58 additions and 4 deletions

View File

@@ -39,11 +39,27 @@ export function showMissingModelsWarning(props: {
})
}
export function showSettingsDialog() {
export function showSettingsDialog(
panel?: 'about' | 'keybinding' | 'extension' | 'server-config'
) {
const props = panel ? { props: { defaultPanel: panel } } : undefined
useDialogStore().showDialog({
key: 'global-settings',
headerComponent: SettingDialogHeader,
component: SettingDialogContent
component: SettingDialogContent,
...props
})
}
export function showAboutDialog() {
useDialogStore().showDialog({
key: 'global-settings',
headerComponent: SettingDialogHeader,
component: SettingDialogContent,
props: {
defaultPanel: 'about'
}
})
}