feat: Enhance template filtering with Fuse.js and add model selection

This commit is contained in:
Johnpaul
2025-08-20 17:17:13 +01:00
parent deba8df8ce
commit ac8b108f39
5 changed files with 680 additions and 85 deletions

View File

@@ -0,0 +1,29 @@
import WorkflowTemplateSelector from '@/components/custom/widget/WorkflowTemplateSelector.vue'
import { useDialogService } from '@/services/dialogService'
import { useDialogStore } from '@/stores/dialogStore'
const DIALOG_KEY = 'global-workflow-template-selector'
export const useWorkflowTemplateSelectorDialog = () => {
const dialogService = useDialogService()
const dialogStore = useDialogStore()
function hide() {
dialogStore.closeDialog({ key: DIALOG_KEY })
}
function show() {
dialogService.showLayoutDialog({
key: DIALOG_KEY,
component: WorkflowTemplateSelector,
props: {
onClose: hide
}
})
}
return {
show,
hide
}
}