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

Method alertText

web/pgadmin/static/js/helpers/Notifier.jsx:173–175  ·  view source on GitHub ↗
(title, text, onOkClick, okLabel=gettext('OK'))

Source from the content-addressed store, hash-verified

171 // Plain-text modal alert. Use whenever `text` may contain untrusted
172 // content (driver / API error messages, server-supplied strings, etc.).
173 alertText(title, text, onOkClick, okLabel=gettext('OK')) {
174 this.modal.alert(title, text, onOkClick, okLabel, {plainText: true});
175 }
176
177 confirm(title, text, onOkClick, onCancelClick, okLabel=gettext('Yes'), cancelLabel=gettext('No'), okIcon='default', modalId=null) {
178 /* Use this if you want to use pgAdmin global notifier.

Callers 15

pgRespErrorNotifyMethod · 0.95
pgNotifierMethod · 0.95
subscription.jsFile · 0.80
mview.jsFile · 0.80
node.jsFile · 0.80
raiseErrorMethod · 0.80
onFailMethod · 0.80
clearArgsFunction · 0.80
startDebuggingFunction · 0.80
raiseJSONErrorFunction · 0.80
messagesFunction · 0.80

Calls 2

gettextFunction · 0.85
alertMethod · 0.80

Tested by

no test coverage detected