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

Function _appendNode

web/pgadmin/browser/static/js/browser.js:1140–1156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1138 });
1139 } else {
1140 let _appendNode = function() {
1141 __ctx.t.append(__ctx.i, _new).then(
1142 (new_item) => {
1143 __ctx.t.openPath(new_item);
1144 __ctx.t.select(new_item);
1145 if (typeof(__ctx?.o?.success) == 'function') {
1146 __ctx.o.success.apply(__ctx.t, [__ctx.i, _old, _new]);
1147 }
1148 },
1149 () => {
1150 console.warn('Failed to append...', arguments);
1151 if (typeof(__ctx?.o?.fail) == 'function') {
1152 __ctx.o.fail.apply(__ctx.t, [__ctx.i, _old, _new]);
1153 }
1154 },
1155 );
1156 };
1157
1158 // If the current node's inode is false
1159 if (__ctx.i && !__ctx.t.isInode(__ctx.i)) {

Callers 1

browser.jsFile · 0.85

Calls 3

appendMethod · 0.80
openPathMethod · 0.80
selectMethod · 0.80

Tested by

no test coverage detected