mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-01 19:51:54 +00:00
feat: more of the flow and fixes
This commit is contained in:
@@ -41,13 +41,15 @@
|
||||
import { ref } from 'vue'
|
||||
|
||||
import Button from '@/components/ui/button/Button.vue'
|
||||
import { useWorkspace } from '@/platform/workspace/composables/useWorkspace'
|
||||
import { useDialogStore } from '@/stores/dialogStore'
|
||||
|
||||
const { onConfirm } = defineProps<{
|
||||
onConfirm: () => void | Promise<void>
|
||||
const { memberId } = defineProps<{
|
||||
memberId: string
|
||||
}>()
|
||||
|
||||
const dialogStore = useDialogStore()
|
||||
const { removeMember } = useWorkspace()
|
||||
const loading = ref(false)
|
||||
|
||||
function onCancel() {
|
||||
@@ -57,7 +59,7 @@ function onCancel() {
|
||||
async function onRemove() {
|
||||
loading.value = true
|
||||
try {
|
||||
await onConfirm()
|
||||
await removeMember(memberId)
|
||||
dialogStore.closeDialog({ key: 'remove-member' })
|
||||
} finally {
|
||||
loading.value = false
|
||||
|
||||
Reference in New Issue
Block a user