refactor: FaiError -> ChainError (SDK stub rename lockstep)
Some checks failed
Security / Security check (push) Failing after 1s
Some checks failed
Security / Security check (push) Failing after 1s
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
bb606a8b23
commit
7a38cd58aa
13 changed files with 30 additions and 30 deletions
|
|
@ -100,7 +100,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
).showSnackBar(SnackBar(content: Text(l.hubAuthTokenSavedToast)));
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'auth.hub-token.save', e);
|
||||
showChainErrorSnack(context, 'auth.hub-token.save', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
).showSnackBar(SnackBar(content: Text(l.hubAuthTokenClearedToast)));
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'auth.hub-token.clear', e);
|
||||
showChainErrorSnack(context, 'auth.hub-token.clear', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
).showSnackBar(SnackBar(content: Text(l.registryTokenSavedToast)));
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'auth.registry-token.save', e);
|
||||
showChainErrorSnack(context, 'auth.registry-token.save', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -156,7 +156,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
).showSnackBar(SnackBar(content: Text(l.registryTokenClearedToast)));
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'auth.registry-token.clear', e);
|
||||
showChainErrorSnack(context, 'auth.registry-token.clear', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
).showSnackBar(SnackBar(content: Text(l.addedN8nToast(draft.name))));
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'settings.n8n.add', e);
|
||||
showChainErrorSnack(context, 'settings.n8n.add', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
setState(() => _n8nEndpoints = list);
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'settings.n8n.remove', e);
|
||||
showChainErrorSnack(context, 'settings.n8n.remove', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -208,7 +208,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
setState(() => _n8nEndpoints = list);
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'settings.n8n.refresh', e);
|
||||
showChainErrorSnack(context, 'settings.n8n.refresh', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -238,7 +238,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
).showSnackBar(SnackBar(content: Text(l.addedMcpToast(draft.name))));
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'settings.mcp.add', e);
|
||||
showChainErrorSnack(context, 'settings.mcp.add', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -249,7 +249,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
setState(() => _mcpClients = list);
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'settings.mcp.remove', e);
|
||||
showChainErrorSnack(context, 'settings.mcp.remove', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -260,7 +260,7 @@ class _FaiSettingsDialogState extends State<ChainSettingsDialog> {
|
|||
setState(() => _mcpClients = list);
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
showFaiErrorSnack(context, 'settings.mcp.refresh', e);
|
||||
showChainErrorSnack(context, 'settings.mcp.refresh', e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue