Add issue report dialog service (#2284)

Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
bymyself
2025-01-19 18:44:11 -07:00
committed by GitHub
parent a1ed67fc74
commit 654d72b4cc
6 changed files with 81 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
import ConfirmationDialogContent from '@/components/dialog/content/ConfirmationDialogContent.vue'
import ExecutionErrorDialogContent from '@/components/dialog/content/ExecutionErrorDialogContent.vue'
import FeedbackDialogContent from '@/components/dialog/content/FeedbackDialogContent.vue'
import IssueReportDialogContent from '@/components/dialog/content/IssueReportDialogContent.vue'
import LoadWorkflowWarning from '@/components/dialog/content/LoadWorkflowWarning.vue'
import MissingModelsWarning from '@/components/dialog/content/MissingModelsWarning.vue'
import PromptDialogContent from '@/components/dialog/content/PromptDialogContent.vue'
@@ -84,12 +84,12 @@ export const useDialogService = () => {
})
}
function showFeedbackDialog(
props: InstanceType<typeof FeedbackDialogContent>['$props'] = {}
function showIssueReportDialog(
props: InstanceType<typeof IssueReportDialogContent>['$props']
) {
dialogStore.showDialog({
key: 'global-provide-feedback',
component: FeedbackDialogContent,
key: 'global-issue-report',
component: IssueReportDialogContent,
props
})
}
@@ -171,7 +171,7 @@ export const useDialogService = () => {
showAboutDialog,
showExecutionErrorDialog,
showTemplateWorkflowsDialog,
showFeedbackDialog,
showIssueReportDialog,
prompt,
confirm
}