File tree Expand file tree Collapse file tree 2 files changed +33
-10
lines changed
client/packages/lowcoder/src/pages/setting/environments Expand file tree Collapse file tree 2 files changed +33
-10
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
Dropdown ,
12
12
Menu ,
13
13
Button ,
14
+ Breadcrumb ,
14
15
} from "antd" ;
15
16
import {
16
17
ReloadOutlined ,
@@ -22,6 +23,7 @@ import {
22
23
EditOutlined ,
23
24
EllipsisOutlined ,
24
25
MoreOutlined ,
26
+ HomeOutlined
25
27
} from "@ant-design/icons" ;
26
28
27
29
import { useEnvironmentContext } from "./context/EnvironmentContext" ;
@@ -30,6 +32,7 @@ import { userGroupsConfig } from "./config/usergroups.config";
30
32
import DeployableItemsTab from "./components/DeployableItemsTab" ;
31
33
import EditEnvironmentModal from "./components/EditEnvironmentModal" ;
32
34
import { Environment } from "./types/environment.types" ;
35
+ import history from "@lowcoder-ee/util/history" ;
33
36
34
37
const { Title, Text } = Typography ;
35
38
const { TabPane } = Tabs ;
@@ -106,6 +109,20 @@ const EnvironmentDetail: React.FC = () => {
106
109
}
107
110
return (
108
111
< div className = "environment-detail-container" style = { { padding : "24px" , flex : 1 } } >
112
+
113
+ < Breadcrumb style = { { marginBottom : "16px" } } >
114
+ < Breadcrumb . Item >
115
+ < span
116
+ style = { { cursor : "pointer" } }
117
+ onClick = { ( ) => history . push ( "/setting/environments" ) }
118
+ >
119
+ < HomeOutlined /> Environments
120
+ </ span >
121
+ </ Breadcrumb . Item >
122
+ < Breadcrumb . Item > { environment . environmentName } </ Breadcrumb . Item >
123
+ </ Breadcrumb >
124
+
125
+
109
126
{ /* Header with environment name and controls */ }
110
127
< div
111
128
className = "environment-header"
Original file line number Diff line number Diff line change @@ -115,17 +115,23 @@ const WorkspaceDetail: React.FC = () => {
115
115
>
116
116
{ /* Breadcrumb navigation */ }
117
117
< Breadcrumb style = { { marginBottom : "16px" } } >
118
- < Breadcrumb . Item
119
- onClick = { ( ) => history . push ( "/home/settings/environments" ) }
120
- >
121
- < HomeOutlined /> Environments
118
+ < Breadcrumb . Item >
119
+ < span
120
+ style = { { cursor : "pointer" } }
121
+ onClick = { ( ) => history . push ( "/setting/environments" ) }
122
+ >
123
+ < HomeOutlined /> Environments
124
+ </ span >
122
125
</ Breadcrumb . Item >
123
- < Breadcrumb . Item
124
- onClick = { ( ) =>
125
- history . push ( `/home/settings/environments/${ environmentId } ` )
126
- }
127
- >
128
- < TeamOutlined /> { environment . environmentName }
126
+ < Breadcrumb . Item >
127
+ < span
128
+ style = { { cursor : "pointer" } }
129
+ onClick = { ( ) =>
130
+ history . push ( `/setting/environments/${ environmentId } ` )
131
+ }
132
+ >
133
+ < TeamOutlined /> { environment . environmentName }
134
+ </ span >
129
135
</ Breadcrumb . Item >
130
136
< Breadcrumb . Item > { workspace . name } </ Breadcrumb . Item >
131
137
</ Breadcrumb >
You can’t perform that action at this time.
0 commit comments