mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-19 16:55:02 +02:00
fix(editor): Reword the Gateway credits warning in the switch modal (no-changelog)
Make the node the subject. "Gateway credits supports this node" reads as a number disagreement, and credits pay for a node rather than support it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a9beea5e3d
commit
5d257e0085
|
|
@ -2311,9 +2311,9 @@
|
|||
"aiGateway.switchModal.title": "Switch to Gateway credits",
|
||||
"aiGateway.switchModal.description": "These nodes can use Gateway credits instead of their own credential. Choose which ones to switch.",
|
||||
"aiGateway.switchModal.row.authHint": "Switching also changes this node's authentication setting.",
|
||||
"aiGateway.switchModal.row.caveat.unsupportedModel": "Gateway credits supports this node but not the selected model. Switch only if you also change the model.",
|
||||
"aiGateway.switchModal.row.caveat.unsupportedAction": "Gateway credits supports this node but not the selected operation. Switch only if you also change the operation.",
|
||||
"aiGateway.switchModal.row.caveat.hiddenPropertySet": "Gateway credits supports this node but not one of its settings. Switch only if you also change that setting.",
|
||||
"aiGateway.switchModal.row.caveat.unsupportedModel": "This node works with Gateway credits, but the selected model does not. Switch only if you also change the model.",
|
||||
"aiGateway.switchModal.row.caveat.unsupportedAction": "This node works with Gateway credits, but the selected operation does not. Switch only if you also change the operation.",
|
||||
"aiGateway.switchModal.row.caveat.hiddenPropertySet": "This node works with Gateway credits, but one of its settings does not. Switch only if you also change that setting.",
|
||||
"aiGateway.switchModal.confirm": "Switch {count} node | Switch {count} nodes",
|
||||
"aiGateway.switchModal.result.success.title": "Switched to Gateway credits",
|
||||
"aiGateway.switchModal.result.partial.title": "Some nodes couldn't switch",
|
||||
|
|
|
|||
|
|
@ -235,9 +235,18 @@ describe('GatewayOpportunitySwitchModal', () => {
|
|||
});
|
||||
|
||||
it.each([
|
||||
['unsupportedModel', 'Gateway credits supports this node but not the selected model.'],
|
||||
['unsupportedAction', 'Gateway credits supports this node but not the selected operation.'],
|
||||
['hiddenPropertySet', 'Gateway credits supports this node but not one of its settings.'],
|
||||
[
|
||||
'unsupportedModel',
|
||||
'This node works with Gateway credits, but the selected model does not.',
|
||||
],
|
||||
[
|
||||
'unsupportedAction',
|
||||
'This node works with Gateway credits, but the selected operation does not.',
|
||||
],
|
||||
[
|
||||
'hiddenPropertySet',
|
||||
'This node works with Gateway credits, but one of its settings does not.',
|
||||
],
|
||||
] as const)('renders its own message for the %s caveat', (caveat, expectedMessage) => {
|
||||
const { getByTestId } = renderModal([makeOpportunity({ caveat })]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user