MCPcopy Create free account
hub / github.com/massCodeIO/massCode / cleanup

Function cleanup

src/renderer/composables/useDialog.ts:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 let isDialogActive = true
35
36 const cleanup = () => {
37 isDialogActive = false
38
39 if (container && container.parentNode) {
40 render(null, container)
41 container.parentNode.removeChild(container)
42 }
43 }
44
45 return new Promise<boolean>((resolve) => {
46 const DialogComponent = defineComponent({

Callers 2

onConfirmFunction · 0.85
onCancelFunction · 0.85

Calls 1

renderFunction · 0.85

Tested by

no test coverage detected