Skip to content

Commit 79f7aab

Browse files
#1896372: [Test] Need click OK button twice when creating VM with public key
1 parent 4e52d72 commit 79f7aab

File tree

1 file changed

+8
-0
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/component

1 file changed

+8
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/component/AzureFileInput.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*/
5+
56
package com.microsoft.azure.toolkit.intellij.common.component;
67

78
import com.intellij.openapi.ui.TextFieldWithBrowseButton;
89
import com.microsoft.azure.toolkit.intellij.common.AzureFormInputComponent;
10+
import com.microsoft.azure.toolkit.intellij.common.AzureTextInput;
911

1012
public class AzureFileInput extends TextFieldWithBrowseButton implements AzureFormInputComponent<String> {
13+
public AzureFileInput() {
14+
super(new AzureTextInput());
15+
((AzureTextInput) this.getTextField()).addValueChangedListener(this::fireValueChangedEvent);
16+
this.trackValidation();
17+
}
18+
1119
@Override
1220
public String getValue() {
1321
return this.getText();

0 commit comments

Comments
 (0)