mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Trim spaces from arc connect controller dialog (#15321)
This commit is contained in:
@@ -193,7 +193,7 @@ abstract class ControllerDialogBase extends InitializingComponent {
|
|||||||
return {
|
return {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
endpoint: url || undefined,
|
endpoint: url || undefined,
|
||||||
namespace: this.namespaceInputBox.value!,
|
namespace: this.namespaceInputBox.value!.trim(),
|
||||||
kubeConfigFilePath: this.kubeConfigInputBox.value!,
|
kubeConfigFilePath: this.kubeConfigInputBox.value!,
|
||||||
kubeClusterContext: this.clusterContextRadioGroup.value!,
|
kubeClusterContext: this.clusterContextRadioGroup.value!,
|
||||||
name: this.nameInputBox.value ?? '',
|
name: this.nameInputBox.value ?? '',
|
||||||
@@ -237,7 +237,7 @@ export class ConnectToControllerDialog extends ControllerDialogBase {
|
|||||||
if (!this.namespaceInputBox.value || !this.usernameInputBox.value || !this.passwordInputBox.value) {
|
if (!this.namespaceInputBox.value || !this.usernameInputBox.value || !this.passwordInputBox.value) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
let url = this.urlInputBox.value || '';
|
let url = this.urlInputBox.value?.trim() || '';
|
||||||
if (url) {
|
if (url) {
|
||||||
// Only support https connections
|
// Only support https connections
|
||||||
if (url.toLowerCase().startsWith('http://')) {
|
if (url.toLowerCase().startsWith('http://')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user