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

Method confirm

web/pgadmin/static/js/helpers/Notifier.jsx:177–181  ·  view source on GitHub ↗
(title, text, onOkClick, onCancelClick, okLabel=gettext('Yes'), cancelLabel=gettext('No'), okIcon='default', modalId=null)

Source from the content-addressed store, hash-verified

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.
179 Or else, if you want to use modal inside iframe only then use ModalProvider eg- query tool */
180 this.modal.confirm(title, text, onOkClick, onCancelClick, okLabel, cancelLabel, okIcon, modalId);
181 }
182
183 confirmDelete(title, text, onDeleteClick, onCancelClick, okLabel = gettext('Delete'), cancelLabel = gettext('Cancel')){
184 this.modal.confirmDelete(title, text, onDeleteClick, onCancelClick, okLabel, cancelLabel);

Callers 15

delete_userMethod · 0.80
server.jsFile · 0.80
disconnect_from_serverFunction · 0.80
database.jsFile · 0.80
disconnect_from_databaseFunction · 0.80
dbms_job.jsFile · 0.80
dbms_program.jsFile · 0.80
baseFieldsMethod · 0.80
table.jsFile · 0.80
baseFieldsMethod · 0.80
baseFieldsMethod · 0.80
partition.jsFile · 0.80

Calls 1

gettextFunction · 0.85

Tested by

no test coverage detected