File tree Expand file tree Collapse file tree 1 file changed +9
-31
lines changed
plugins/amazonq/mynah-ui/src/mynah-ui/ui Expand file tree Collapse file tree 1 file changed +9
-31
lines changed Original file line number Diff line number Diff line change @@ -559,6 +559,15 @@ export class Connector {
559
559
this . amazonqCommonsConnector . onCustomFormAction ( tabId , action )
560
560
break
561
561
}
562
+ case 'cwc' : {
563
+ if ( action . id === `open-settings` ) {
564
+ this . sendMessageToExtension ( {
565
+ command : 'open-settings' ,
566
+ type : '' ,
567
+ tabType : 'cwc' ,
568
+ } )
569
+ }
570
+ }
562
571
}
563
572
}
564
573
@@ -594,35 +603,4 @@ export class Connector {
594
603
break
595
604
}
596
605
}
597
-
598
- onFormButtonClick = (
599
- tabId : string ,
600
- messageId : string ,
601
- action : {
602
- id : string
603
- text ?: string
604
- formItemValues ?: Record < string , string >
605
- }
606
- ) => {
607
- if ( isFormButtonCodeTransform ( action . id ) ) {
608
- this . codeTransformChatConnector . onFormButtonClick ( tabId , action )
609
- } else if ( isFormButtonCodeScan ( action . id ) ) {
610
- this . codeScanChatConnector . onFormButtonClick ( tabId , action )
611
- } else if ( isFormButtonCodeTest ( action . id ) ) {
612
- this . codeTestChatConnector . onFormButtonClick ( tabId , messageId , action )
613
- } else if ( action . id === 'doc' ) {
614
- this . docChatConnector . onFormButtonClick ( tabId , action )
615
- }
616
- switch ( this . tabsStorage . getTab ( tabId ) ?. type ) {
617
- case 'cwc' :
618
- if ( action . id === `open-settings` ) {
619
- this . sendMessageToExtension ( {
620
- command : 'open-settings' ,
621
- type : '' ,
622
- tabType : 'cwc' ,
623
- } )
624
- }
625
- break
626
- }
627
- }
628
606
}
You can’t perform that action at this time.
0 commit comments