mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-06 01:42:11 +02:00
Back to main fanout screen on save
This commit is contained in:
@@ -1050,9 +1050,15 @@ export function SettingsFanoutSection({
|
||||
};
|
||||
if (enabled !== undefined) update.enabled = enabled;
|
||||
await api.updateFanoutConfig(editingId, update);
|
||||
await loadConfigs();
|
||||
if (onHealthRefresh) await onHealthRefresh();
|
||||
setEditingId(null);
|
||||
await loadConfigs();
|
||||
if (onHealthRefresh) {
|
||||
try {
|
||||
await onHealthRefresh();
|
||||
} catch (err) {
|
||||
console.error('Failed to refresh health after saving fanout config:', err);
|
||||
}
|
||||
}
|
||||
toast.success(enabled ? 'Integration saved and enabled' : 'Integration saved');
|
||||
} catch (err) {
|
||||
toast.error(err instanceof Error ? err.message : 'Failed to save');
|
||||
|
||||
Reference in New Issue
Block a user