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

Function checkDisabled

web/pgadmin/static/js/SchemaView/ResetButton.jsx:20–20  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

18 const [key, setKey] = useState(0);
19 const schemaState = useContext(SchemaStateContext);
20 const checkDisabled = (state) => (state.isSaving || !state.isDirty);
21 const currState = schemaState.state();
22 const isDisabled = checkDisabled(currState);
23

Callers 2

ResetButtonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected