forked from pgadmin-org/pgadmin4
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebugger_ui.js
More file actions
32 lines (26 loc) · 1.26 KB
/
debugger_ui.js
File metadata and controls
32 lines (26 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
///////////////////////////////////////////////////////////////
////
//// pgAdmin 4 - PostgreSQL Tools
////
//// Copyright (C) 2013 - 2025, The pgAdmin Development Team
//// This software is released under the PostgreSQL Licence
////
////////////////////////////////////////////////////////////////
import React from 'react';
import gettext from 'sources/gettext';
import pgAdmin from 'sources/pgadmin';
import DebuggerArgumentComponent from './components/DebuggerArgumentComponent';
export default class FunctionArguments {
show(debugInfo, restartDebug, isEdbProc, transId) {
let t = pgAdmin.Browser.tree,
i = t.selected(),
d = i ? t.itemData(i) : undefined;
if (!d)
return;
let treeInfo = t.getTreeNodeHierarchy(i);
// Render Debugger argument component
pgAdmin.Browser.notifier.showModal(gettext('Debugger'), (closeModal) => {
return <DebuggerArgumentComponent closeModal={closeModal} debuggerInfo={debugInfo} restartDebug={restartDebug} isEdbProc={isEdbProc} transId={transId} pgTreeInfo={treeInfo} pgData={d}></DebuggerArgumentComponent>;
}, { isFullScreen: false, isResizeable: true, showFullScreen: true, isFullWidth: true, dialogWidth: pgAdmin.Browser.stdW.md, dialogHeight: pgAdmin.Browser.stdH.md, id:'id-debugger'});
}
}