From 6cde5b3f4da62c1bd3d35d90005b90c2348303f0 Mon Sep 17 00:00:00 2001 From: Tony Anziano Date: Fri, 1 Feb 2019 15:56:45 -0800 Subject: [PATCH] Hooked up gov checkbox in new bot dialog. --- CHANGELOG.md | 1 + .../dialogs/botCreationDialog/botCreationDialog.tsx | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39c4851cf..9dd5be36f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,3 +19,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [client] fix link to manage qna service, in PR [#1301](https://github.com/Microsoft/BotFramework-Emulator/pull/1301) - [client] Fixed resources pane styling issues, and added scrollbars, in PR [#1303](https://github.com/Microsoft/BotFramework-Emulator/pull/1303) - [client] Fixed issue where transcript tab name was being overwritten after opening the transcript a second time, in PR [#1304](https://github.com/Microsoft/BotFramework-Emulator/pull/1304) +- [client] Fixed Azure gov checkbox and added a link to docs, in PR [#1292](https://github.com/Microsoft/BotFramework-Emulator/pull/1292) diff --git a/packages/app/client/src/ui/dialogs/botCreationDialog/botCreationDialog.tsx b/packages/app/client/src/ui/dialogs/botCreationDialog/botCreationDialog.tsx index 43d6a6a6f..1cfbc2dee 100644 --- a/packages/app/client/src/ui/dialogs/botCreationDialog/botCreationDialog.tsx +++ b/packages/app/client/src/ui/dialogs/botCreationDialog/botCreationDialog.tsx @@ -63,6 +63,7 @@ export interface BotCreationDialogState { secret: string; encryptKey: boolean; revealSecret: boolean; + isAzureGov: boolean; } export class BotCreationDialog extends React.Component<{}, BotCreationDialogState> { @@ -85,6 +86,7 @@ export class BotCreationDialog extends React.Component<{}, BotCreationDialogStat appPassword: '', endpoint: '', }), + isAzureGov: false, secret: '', encryptKey: false, revealSecret: true, @@ -92,7 +94,7 @@ export class BotCreationDialog extends React.Component<{}, BotCreationDialogStat } public render(): JSX.Element { - const { secret, bot, endpoint, encryptKey, revealSecret } = this.state; + const { secret, bot, endpoint, encryptKey, isAzureGov, revealSecret } = this.state; const secretCriteria = encryptKey ? secret : true; const requiredFieldsCompleted = bot && endpoint.endpoint && bot.name && secretCriteria; @@ -139,7 +141,12 @@ export class BotCreationDialog extends React.Component<{}, BotCreationDialogStat value={endpoint.appPassword} /> - + + + +  Learn more. + +