1
- import {
2
- VSCodeButton ,
3
- VSCodeDropdown ,
4
- VSCodeLink ,
5
- VSCodeOption ,
6
- VSCodeTextField ,
7
- } from "@vscode/webview-ui-toolkit/react" ;
1
+ import { VSCodeDropdown , VSCodeOption } from "@vscode/webview-ui-toolkit/react" ;
8
2
import styles from "./AzureServiceOperator.module.css" ;
9
3
import { ASOState , EventDef , InstallStepStatus } from "./helpers/state" ;
10
4
import { EventHandlers } from "../utilities/state" ;
@@ -74,30 +68,30 @@ export function Inputs(props: InputsProps) {
74
68
< FontAwesomeIcon className = { styles . infoIndicator } icon = { faInfoCircle } />
75
69
Provide the App ID and password of a Service Principal with Contributor permissions for your
76
70
subscription. This allows ASO to create resources in your subscription on your behalf.
77
- < VSCodeLink href = "https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli" >
71
+ < a href = "https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli" >
78
72
Learn more
79
- </ VSCodeLink >
73
+ </ a >
80
74
</ p >
81
75
82
76
< label htmlFor = "spappid" className = { styles . label } >
83
77
Enter App ID of service principal:
84
78
</ label >
85
- < VSCodeTextField
79
+ < input
80
+ type = "text"
86
81
value = { appId || "" }
87
82
readOnly = { ! canEditSP }
88
83
required
89
84
id = "spappid"
90
85
onInput = { handleAppIdChange }
91
86
className = { styles . control }
92
87
size = { 50 }
93
- type = "text"
94
88
placeholder = "e.g. 041ccd53-e72f-45d1-bbff-382c82f6f9a1"
95
89
/>
96
90
97
91
< label htmlFor = "spcred" className = { styles . label } >
98
92
Enter Password of Service Principal:
99
93
</ label >
100
- < VSCodeTextField
94
+ < input
101
95
value = { appSecret || "" }
102
96
readOnly = { ! canEditSP }
103
97
required
@@ -109,9 +103,9 @@ export function Inputs(props: InputsProps) {
109
103
placeholder = "Service principal password"
110
104
/>
111
105
112
- < VSCodeButton disabled = { ! canCheckSP } onClick = { handleCheckSPClick } >
106
+ < button disabled = { ! canCheckSP } onClick = { handleCheckSPClick } >
113
107
Check
114
- </ VSCodeButton >
108
+ </ button >
115
109
</ div >
116
110
{ canViewSubscriptions && (
117
111
< div className = { styles . inputContainer } >
@@ -121,9 +115,7 @@ export function Inputs(props: InputsProps) {
121
115
The supplied service principal has some role assignments on the following subscriptions. Please
122
116
ensure these are adequate for the Azure resources that ASO will be creating in your selected
123
117
subscription.
124
- < VSCodeLink href = "https://azure.github.io/azure-service-operator/#installation" >
125
- Learn more
126
- </ VSCodeLink >
118
+ < a href = "https://azure.github.io/azure-service-operator/#installation" > Learn more</ a >
127
119
</ p >
128
120
129
121
< label htmlFor = "sub-select" className = { styles . label } >
@@ -143,9 +135,9 @@ export function Inputs(props: InputsProps) {
143
135
</ VSCodeOption >
144
136
) ) }
145
137
</ VSCodeDropdown >
146
- < VSCodeButton disabled = { ! canStartInstalling } type = "submit" >
138
+ < button disabled = { ! canStartInstalling } type = "submit" >
147
139
Install
148
- </ VSCodeButton >
140
+ </ button >
149
141
</ div >
150
142
) }
151
143
</ form >
0 commit comments