MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / onSave

Function onSave

web/pgadmin/browser/static/js/node.js:404–418  ·  view source on GitHub ↗
(newNodeData)

Source from the content-addressed store, hash-verified

402 const panelId = _.uniqueId(BROWSER_PANELS.EDIT_PROPERTIES);
403 const onClose = (force=false)=>{ pgBrowser.docker.default_workspace.close(panelId, force); };
404 const onSave = (newNodeData)=>{
405 // Clear the cache for this node now.
406 setTimeout(()=>{
407 this.clear_cache(item);
408 }, 0);
409 try {
410 pgBrowser.Events.trigger(
411 'pgadmin:browser:tree:add', _.clone(newNodeData.node),
412 _.clone(treeNodeInfo)
413 );
414 } catch (e) {
415 console.warn(e.stack || e);
416 }
417 onClose();
418 };
419 this.showPropertiesDialog(panelId, panelTitle, {
420 treeNodeInfo: treeNodeInfo,
421 item: nodeItem,

Callers 2

onSaveClickFunction · 0.50
ConfirmSaveContentFunction · 0.50

Calls 3

triggerMethod · 0.80
cloneMethod · 0.80
onCloseFunction · 0.70

Tested by

no test coverage detected