Skip to content

Commit e5f50e2

Browse files
Merge pull request #1815 from kyoto/HITL-button-labels
OLS-1555: Change HITL labels to "Approve" and "Reject"
2 parents 13c889e + 3a2b01c commit e5f50e2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

locales/en/plugin__lightspeed-console-plugin.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"Alert": "Alert",
55
"Always review AI generated content prior to use.": "Always review AI generated content prior to use.",
66
"An unexpected error occurred": "An unexpected error occurred",
7-
"Apply": "Apply",
87
"Approval failed:": "Approval failed:",
8+
"Approve": "Approve",
99
"Are you sure you want to erase the current chat conversation and start a new chat? This action cannot be undone.": "Are you sure you want to erase the current chat conversation and start a new chat? This action cannot be undone.",
1010
"Ask": "Ask",
1111
"Attach": "Attach",
@@ -101,6 +101,7 @@
101101
"Preview attachment - modified": "Preview attachment - modified",
102102
"Red Hat OpenShift Lightspeed": "Red Hat OpenShift Lightspeed",
103103
"Refresh": "Refresh",
104+
"Reject": "Reject",
104105
"Remove Troubleshooting mode": "Remove Troubleshooting mode",
105106
"Restore": "Restore",
106107
"Revert to original": "Revert to original",

src/components/ToolApproval.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ const ToolApproval: React.FC<ToolApprovalCardProps> = ({ chatEntryID, tool, tool
103103
<ActionListGroup>
104104
<ActionListItem>
105105
<Button onClick={onDeny} variant="secondary">
106-
{t('Cancel')}
106+
{t('Reject')}
107107
</Button>
108108
</ActionListItem>
109109
<ActionListItem>
110110
<Button onClick={onApprove} variant="warning">
111-
{t('Apply')}
111+
{t('Approve')}
112112
</Button>
113113
</ActionListItem>
114114
</ActionListGroup>

0 commit comments

Comments
 (0)