File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
client/packages/lowcoder/src/pages/setting/environments Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ import {
14
14
Space ,
15
15
Tag ,
16
16
Switch ,
17
- message
17
+ message ,
18
+ Tooltip
18
19
} from "antd" ;
19
20
import {
20
21
AppstoreOutlined ,
@@ -180,16 +181,24 @@ const WorkspaceDetail: React.FC = () => {
180
181
unCheckedChildren = "No"
181
182
/>
182
183
</ div >
183
- < Button
184
- type = "primary"
185
- icon = { < CloudUploadOutlined /> }
186
- onClick = { ( ) =>
187
- openDeployModal ( workspace , workspaceConfig , environment )
184
+ < Tooltip
185
+ title = {
186
+ ! workspace . managed
187
+ ? "Workspace must be managed before it can be deployed"
188
+ : "Deploy this workspace to another environment"
188
189
}
189
- disabled = { ! workspace . managed }
190
190
>
191
- Deploy
192
- </ Button >
191
+ < Button
192
+ type = "primary"
193
+ icon = { < CloudUploadOutlined /> }
194
+ onClick = { ( ) =>
195
+ openDeployModal ( workspace , workspaceConfig , environment )
196
+ }
197
+ disabled = { ! workspace . managed }
198
+ >
199
+ Deploy
200
+ </ Button >
201
+ </ Tooltip >
193
202
< Button
194
203
icon = { < ArrowLeftOutlined /> }
195
204
onClick = { ( ) =>
You can’t perform that action at this time.
0 commit comments