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

Function onHelp

web/pgadmin/static/js/UtilityView.jsx:129–145  ·  view source on GitHub ↗
(isSqlHelp=false)

Source from the content-addressed store, hash-verified

127
128 /* Callback for help button */
129 const onHelp = (isSqlHelp=false)=>{
130 if(isSqlHelp) {
131 let server = treeNodeInfo.server;
132 let help_url = pgAdmin.Browser.utils.pg_help_path;
133 let fullUrl = '';
134
135 if (server.server_type == 'ppas') {
136 fullUrl = getEPASHelpUrl(server.version);
137 } else {
138 fullUrl = getHelpUrl(help_url, sqlHelpUrl, server.version);
139 }
140
141 window.open(fullUrl, 'postgres_help');
142 } else {
143 window.open(helpUrl, 'pgadmin_help');
144 }
145 };
146
147 /* All other useful details can go with this object */
148 const viewHelperProps = {

Callers

nothing calls this directly

Calls 3

getEPASHelpUrlFunction · 0.90
getHelpUrlFunction · 0.90
openMethod · 0.45

Tested by

no test coverage detected