Skip to content

Commit 2dfd461

Browse files
author
David Hasani
committed
set disabled to false
1 parent 36255d6 commit 2dfd461

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

packages/core/src/amazonqGumby/chat/controller/controller.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,9 @@ export class GumbyController {
383383
break
384384
case ButtonActions.VIEW_TRANSFORMATION_HUB:
385385
await vscode.commands.executeCommand(GumbyCommands.FOCUS_TRANSFORMATION_HUB, CancelActionPositions.Chat)
386-
this.messenger.sendJobSubmittedMessage(message.tabID)
387386
break
388387
case ButtonActions.VIEW_SUMMARY:
389388
await vscode.commands.executeCommand('aws.amazonq.transformationHub.summary.reveal')
390-
this.transformationFinished({
391-
message: CodeWhispererConstants.viewProposedChangesChatMessage,
392-
tabID: message.tabID,
393-
includeStartNewTransformationButton: true,
394-
})
395389
break
396390
case ButtonActions.STOP_TRANSFORMATION_JOB:
397391
await stopTransformByQ(transformByQState.getJobId())

packages/core/src/amazonqGumby/chat/controller/messenger/messenger.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,19 +376,20 @@ export class Messenger {
376376
) {
377377
const buttons: ChatItemButton[] = []
378378

379+
// don't show these buttons when server build fails
379380
if (!disableJobActions) {
380-
// Note: buttons can only be clicked once.
381-
// To get around this, we remove the card after it's clicked and then resubmit the message.
382381
buttons.push({
383382
keepCardAfterClick: true,
384383
text: CodeWhispererConstants.openTransformationHubButtonText,
385384
id: ButtonActions.VIEW_TRANSFORMATION_HUB,
385+
disabled: false, // allow button to be re-clicked
386386
})
387387

388388
buttons.push({
389389
keepCardAfterClick: true,
390390
text: CodeWhispererConstants.stopTransformationButtonText,
391391
id: ButtonActions.STOP_TRANSFORMATION_JOB,
392+
disabled: false,
392393
})
393394
}
394395

@@ -514,6 +515,7 @@ export class Messenger {
514515
keepCardAfterClick: false,
515516
text: CodeWhispererConstants.startTransformationButtonText,
516517
id: ButtonActions.CONFIRM_START_TRANSFORMATION_FLOW,
518+
disabled: false,
517519
})
518520
}
519521

@@ -522,6 +524,7 @@ export class Messenger {
522524
keepCardAfterClick: true,
523525
text: CodeWhispererConstants.viewSummaryButtonText,
524526
id: ButtonActions.VIEW_SUMMARY,
527+
disabled: false,
525528
})
526529
}
527530

0 commit comments

Comments
 (0)