(typeOfDialog)
| 286 | return treeInfo.server._id; |
| 287 | }, |
| 288 | setExtraParameters(typeOfDialog) { |
| 289 | let extraData = {}; |
| 290 | const selectedNode = pgBrowser.tree.selected(); |
| 291 | let selectedTreeNode = pgBrowser.tree.findNodeByDomElement(selectedNode); |
| 292 | const treeInfo = pgBrowser.tree.getTreeNodeHierarchy(selectedTreeNode); |
| 293 | if (typeOfDialog === 'backup_objects') { |
| 294 | |
| 295 | extraData['database'] = treeInfo.database._label; |
| 296 | |
| 297 | const nodeData = selectedTreeNode.getData(); |
| 298 | if (nodeData._type === 'schema') { |
| 299 | extraData['schemas'] = [nodeData._label]; |
| 300 | } |
| 301 | |
| 302 | if (nodeData._type === 'table' || nodeData._type === 'partition') { |
| 303 | extraData['tables'] = [[treeInfo.schema._label, nodeData._label]]; |
| 304 | } |
| 305 | } else if(typeOfDialog === 'server') { |
| 306 | extraData['type'] = 'server'; |
| 307 | } else if(typeOfDialog === 'globals') { |
| 308 | extraData['type'] = 'globals'; |
| 309 | } |
| 310 | |
| 311 | return extraData; |
| 312 | }, |
| 313 | getHelpFile: function (dialog_type) { |
| 314 | if (dialog_type == 'globals') { |
| 315 | return 'backup_globals_dialog.html'; |
nothing calls this directly
no test coverage detected