MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / onOkClickClose

Function onOkClickClose

web/pgadmin/static/js/helpers/ModalProvider.jsx:85–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 // bind the modal provider before calling
84 this.showModal(title, (closeModal) => {
85 const onOkClickClose = () => {
86 onOkClick?.();
87 closeModal();
88 };
89 return (
90 <AlertContent text={text} onOkClick={onOkClickClose} okLabel={okLabel} plainText={plainText} />
91 );

Callers

nothing calls this directly

Calls 2

onOkClickFunction · 0.85
closeModalFunction · 0.85

Tested by

no test coverage detected