File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
site/src/pages/WorkspacesPage Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ import { Stack } from "../../components/Stack/Stack"
14
14
import { getFormHelpers , onChangeTrimmed } from "../../util/formUtils"
15
15
import { workspacesMachine } from "../../xServices/workspaces/workspacesXService"
16
16
import { WorkspacesPageView } from "./WorkspacesPageView"
17
+ import { CloseDropdown , OpenDropdown } from "../../components/DropdownArrows/DropdownArrows"
17
18
18
19
interface FilterFormValues {
19
20
query : string
20
21
}
21
22
22
23
const Language = {
24
+ filterName : "Filters" ,
23
25
createWorkspaceButton : "Create workspace" ,
24
26
yourWorkspacesButton : "Your workspaces" ,
25
27
allWorkspacesButton : "All workspaces"
@@ -73,10 +75,15 @@ const WorkspacesPage: FC = () => {
73
75
< div className = { styles . actions } >
74
76
< Stack direction = "row" >
75
77
< Button aria-controls = "filter-menu" aria-haspopup = "true" onClick = { handleClick } >
76
- Filter
78
+ { Language . filterName } { anchorEl ? < CloseDropdown /> : < OpenDropdown /> }
77
79
</ Button >
78
80
79
- < Menu id = "filter-menu" anchorEl = { anchorEl } keepMounted open = { Boolean ( anchorEl ) } onClose = { handleClose } >
81
+ < Menu id = "filter-menu"
82
+ anchorEl = { anchorEl }
83
+ keepMounted
84
+ open = { Boolean ( anchorEl ) }
85
+ onClose = { handleClose }
86
+ >
80
87
< MenuItem onClick = { setYourWorkspaces } > { Language . yourWorkspacesButton } </ MenuItem >
81
88
< MenuItem onClick = { setAllWorkspaces } > { Language . allWorkspacesButton } </ MenuItem >
82
89
</ Menu >
You can’t perform that action at this time.
0 commit comments