MCPcopy Create free account
hub / github.com/error311/FileRise / loadManagedStatuses

Function loadManagedStatuses

public/js/adminPanel.js:4238–4251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4236 };
4237
4238 const loadManagedStatuses = async () => {
4239 try {
4240 const data = await apiGet('/api/pro/gateways/managed/status.php');
4241 const rows = Array.isArray(data.gateways) ? data.gateways : [];
4242 state.managedRuntime = data?.runtime && typeof data.runtime === 'object' ? data.runtime : null;
4243 mergeManagedStatuses(rows);
4244 renderManagedGatewayOptions();
4245 renderManagedStatus();
4246 } catch (err) {
4247 state.managedRuntime = null;
4248 setManagedStatus(err?.message || tf('gateway_list_failed', 'Failed to load gateway shares.'), 'danger');
4249 renderManagedRuntimeHelp(null);
4250 }
4251 };
4252
4253 const runManagedAction = async (action, extra = {}) => {
4254 const gatewayId = managedSelectedGatewayId();

Callers 2

runManagedActionFunction · 0.85
initGatewaysSectionFunction · 0.85

Calls 7

mergeManagedStatusesFunction · 0.85
renderManagedStatusFunction · 0.85
setManagedStatusFunction · 0.85
renderManagedRuntimeHelpFunction · 0.85
apiGetFunction · 0.70
tfFunction · 0.70

Tested by

no test coverage detected