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

Function initialize

web/pgadmin/tools/user_management/static/js/Users.jsx:260–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258 };
259
260 const initialize = async () => {
261 setLoading(gettext('Loading...'));
262 try {
263 const res = await api.get(url_for('user_management.auth_sources'));
264 authSources.current = res.data;
265 updateList();
266 } catch (error) {
267 setLoading('');
268 pgAdmin.Browser.notifier.errorText(parseApiError(error));
269 }
270 };
271
272 useEffect(() => {
273 initialize();

Callers 1

UsersFunction · 0.70

Calls 5

parseApiErrorFunction · 0.90
gettextFunction · 0.85
errorTextMethod · 0.80
updateListFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected