Add User Feedback buttons (#2275)

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
bymyself
2025-01-19 17:41:58 -07:00
committed by GitHub
parent 78bc635518
commit a1ed67fc74
21 changed files with 148 additions and 42 deletions

View File

@@ -1,5 +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 LoadWorkflowWarning from '@/components/dialog/content/LoadWorkflowWarning.vue'
import MissingModelsWarning from '@/components/dialog/content/MissingModelsWarning.vue'
import PromptDialogContent from '@/components/dialog/content/PromptDialogContent.vue'
@@ -83,6 +84,16 @@ export const useDialogService = () => {
})
}
function showFeedbackDialog(
props: InstanceType<typeof FeedbackDialogContent>['$props'] = {}
) {
dialogStore.showDialog({
key: 'global-provide-feedback',
component: FeedbackDialogContent,
props
})
}
async function prompt({
title,
message,
@@ -160,6 +171,7 @@ export const useDialogService = () => {
showAboutDialog,
showExecutionErrorDialog,
showTemplateWorkflowsDialog,
showFeedbackDialog,
prompt,
confirm
}