Skip to content

Commit 5d255e1

Browse files
committed
add Undo clickable button and string change
1 parent 5dac164 commit 5d255e1

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

packages/core/src/amazonq/webview/ui/apps/cwChatConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export class Connector extends BaseConnector {
394394
if (answer.header) {
395395
answer.header.status = {
396396
icon: 'cancel' as MynahIconsType,
397-
text: 'Rejected',
397+
text: 'Change discarded',
398398
status: 'error',
399399
}
400400
answer.header.buttons = []

packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -810,25 +810,12 @@ export class Messenger {
810810
{
811811
id: 'reject-code-diff',
812812
status: 'clear',
813-
icon: 'cancel' as MynahIconsType,
813+
icon: 'revert' as MynahIconsType,
814+
text: 'Undo',
814815
},
815816
]
816-
const status: {
817-
icon?: MynahIcons | MynahIconsType
818-
status?: {
819-
status?: Status
820-
icon?: MynahIcons | MynahIconsType
821-
text?: string
822-
}
823-
} = {
824-
status: {
825-
text: 'Accepted',
826-
status: 'success',
827-
},
828-
}
829817
header = {
830818
buttons,
831-
...status,
832819
fileList,
833820
}
834821
} else if (toolUse?.name === ToolType.ListDirectory || toolUse?.name === ToolType.FsRead) {

0 commit comments

Comments
 (0)