mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 16:59:45 +00:00
Add issue report dialog service (#2284)
Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
DEFAULT_DARK_COLOR_PALETTE,
|
||||
DEFAULT_LIGHT_COLOR_PALETTE
|
||||
} from '@/constants/coreColorPalettes'
|
||||
import { t } from '@/i18n'
|
||||
import { api } from '@/scripts/api'
|
||||
import { app } from '@/scripts/app'
|
||||
import { useDialogService } from '@/services/dialogService'
|
||||
@@ -543,9 +544,16 @@ export function useCoreCommands(): ComfyCommand[] {
|
||||
id: 'Comfy.Feedback',
|
||||
icon: 'pi pi-megaphone',
|
||||
label: 'Give Feedback',
|
||||
versionAdded: '1.7.15',
|
||||
versionAdded: '1.8.2',
|
||||
function: () => {
|
||||
dialogService.showFeedbackDialog()
|
||||
dialogService.showIssueReportDialog({
|
||||
title: t('g.feedback'),
|
||||
panelProps: {
|
||||
errorType: 'Feedback',
|
||||
title: t('issueReport.feedbackTitle'),
|
||||
defaultFields: ['SystemStats', 'Settings']
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user