Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 9 additions & 31 deletions plugins/amazonq/mynah-ui/src/mynah-ui/ui/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,15 @@ export class Connector {
this.amazonqCommonsConnector.onCustomFormAction(tabId, action)
break
}
case 'cwc': {
if (action.id === `open-settings`) {
this.sendMessageToExtension({
command: 'open-settings',
type: '',
tabType: 'cwc',
})
}
}
}
}

Expand Down Expand Up @@ -594,35 +603,4 @@ export class Connector {
break
}
}

onFormButtonClick = (
tabId: string,
messageId: string,
action: {
id: string
text?: string
formItemValues?: Record<string, string>
}
) => {
if (isFormButtonCodeTransform(action.id)) {
this.codeTransformChatConnector.onFormButtonClick(tabId, action)
} else if (isFormButtonCodeScan(action.id)) {
this.codeScanChatConnector.onFormButtonClick(tabId, action)
} else if (isFormButtonCodeTest(action.id)) {
this.codeTestChatConnector.onFormButtonClick(tabId, messageId, action)
} else if (action.id === 'doc') {
this.docChatConnector.onFormButtonClick(tabId, action)
}
Comment on lines -607 to -615
Copy link
Contributor Author

@Will-ShaoHua Will-ShaoHua Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch (this.tabsStorage.getTab(tabId)?.type) {
case 'cwc':
if (action.id === `open-settings`) {
this.sendMessageToExtension({
command: 'open-settings',
type: '',
tabType: 'cwc',
})
}
break
}
}
}
Loading