Skip to content

Commit 0c802d0

Browse files
committed
show tooltip on the workspace detail page
1 parent de46a00 commit 0c802d0

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

client/packages/lowcoder/src/pages/setting/environments/WorkspaceDetail.tsx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import {
1414
Space,
1515
Tag,
1616
Switch,
17-
message
17+
message,
18+
Tooltip
1819
} from "antd";
1920
import {
2021
AppstoreOutlined,
@@ -180,16 +181,24 @@ const WorkspaceDetail: React.FC = () => {
180181
unCheckedChildren="No"
181182
/>
182183
</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"
188189
}
189-
disabled={!workspace.managed}
190190
>
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>
193202
<Button
194203
icon={<ArrowLeftOutlined />}
195204
onClick={() =>

0 commit comments

Comments
 (0)