mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-15 06:08:37 +01:00
Adding CESCVA feedback button (#1736)
* Adding CESCVA feedback button * Feedback message logic added
This commit is contained in:
parent
5d80ecb462
commit
9cebe5f9ba
@ -296,6 +296,14 @@ export default class Explorer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async openCESCVAFeedbackBlade(): Promise<void> {
|
||||||
|
sendMessage({ type: MessageTypes.OpenCESCVAFeedbackBlade });
|
||||||
|
Logger.logInfo(
|
||||||
|
`CES CVA Feedback logging current date when survey is shown ${Date.now().toString()}`,
|
||||||
|
"Explorer/openCESCVAFeedbackBlade",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public async refreshDatabaseForResourceToken(): Promise<void> {
|
public async refreshDatabaseForResourceToken(): Promise<void> {
|
||||||
const databaseId = userContext.parsedResourceToken?.databaseId;
|
const databaseId = userContext.parsedResourceToken?.databaseId;
|
||||||
const collectionId = userContext.parsedResourceToken?.collectionId;
|
const collectionId = userContext.parsedResourceToken?.collectionId;
|
||||||
|
@ -236,7 +236,7 @@ export function createControlCommandBarButtons(container: Explorer): CommandButt
|
|||||||
const feedbackButtonOptions: CommandButtonComponentProps = {
|
const feedbackButtonOptions: CommandButtonComponentProps = {
|
||||||
iconSrc: FeedbackIcon,
|
iconSrc: FeedbackIcon,
|
||||||
iconAlt: label,
|
iconAlt: label,
|
||||||
onCommandClick: () => container.provideFeedbackEmail(),
|
onCommandClick: () => container.openCESCVAFeedbackBlade(),
|
||||||
commandButtonLabel: undefined,
|
commandButtonLabel: undefined,
|
||||||
ariaLabel: label,
|
ariaLabel: label,
|
||||||
tooltipText: label,
|
tooltipText: label,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user