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

Function onResetClick

web/pgadmin/static/js/SchemaView/SchemaDialogView.jsx:82–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }, [props.resetKey]);
81
82 const onResetClick = () => {
83 const resetIt = () => {
84 resetView();
85 return true;
86 };
87
88 if (!props.confirmOnCloseReset) {
89 resetIt();
90 return;
91 }
92
93 Notifier.confirm(
94 gettext('Warning'),
95 gettext('Changes will be lost. Are you sure you want to reset?'),
96 resetIt, () => (true),
97 );
98 };
99
100 const save = (changeData) => {
101 props.onSave(schemaState.isNew, changeData)

Callers

nothing calls this directly

Calls 3

resetItFunction · 0.85
gettextFunction · 0.85
confirmMethod · 0.80

Tested by

no test coverage detected