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

Function getEditView

web/regression/javascript/genericFunctions.jsx:32–52  ·  view source on GitHub ↗
(schemaObj, getInitData)

Source from the content-addressed store, hash-verified

30const SchemaViewWithBrowser = withBrowser(SchemaView);
31
32export const getEditView = async (schemaObj, getInitData)=> {
33 await act(async ()=>{
34 return render(<SchemaViewWithBrowser
35 formType='dialog'
36 schema={schemaObj}
37 getInitData={getInitData}
38 viewHelperProps={{
39 mode: 'edit',
40 }}
41 onSave={()=>{/*This is intentional (SonarQube)*/}}
42 onClose={()=>{/*This is intentional (SonarQube)*/}}
43 onHelp={()=>{/*This is intentional (SonarQube)*/}}
44 onEdit={()=>{/*This is intentional (SonarQube)*/}}
45 onDataChange={()=>{/*This is intentional (SonarQube)*/}}
46 confirmOnCloseReset={false}
47 hasSQL={false}
48 disableSqlHelp={false}
49 disableDialogHelp={false}
50 />);
51 });
52};
53
54export const getCreateView = async (schemaObj)=> {
55 let ctrl;

Calls

no outgoing calls

Tested by

no test coverage detected