Skip to content

Commit 0e6e651

Browse files
committed
Update nav
1 parent 139ea5b commit 0e6e651

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

site/src/components/DropdownButton/ActionCtas.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export const ChangeVersionButton: FC<
5454
)
5555
}
5656

57-
export const BuildParametersButton: FC<
58-
React.PropsWithChildren<WorkspaceAction>
59-
> = ({ handleAction }) => {
57+
export const SettingsButton: FC<React.PropsWithChildren<WorkspaceAction>> = ({
58+
handleAction,
59+
}) => {
6060
const styles = useStyles()
6161
const { t } = useTranslation("workspacePage")
6262

@@ -67,7 +67,7 @@ export const BuildParametersButton: FC<
6767
startIcon={<SettingsOutlined />}
6868
onClick={handleAction}
6969
>
70-
{t("actionButton.buildParameters")}
70+
{t("actionButton.settings")}
7171
</Button>
7272
)
7373
}

site/src/components/Workspace/Workspace.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface WorkspaceProps {
4343
handleUpdate: () => void
4444
handleCancel: () => void
4545
handleChangeVersion: () => void
46-
handleBuildParameters: () => void
46+
handleSettings: () => void
4747
isUpdating: boolean
4848
workspace: TypesGen.Workspace
4949
resources?: TypesGen.WorkspaceResource[]
@@ -70,7 +70,7 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
7070
handleUpdate,
7171
handleCancel,
7272
handleChangeVersion,
73-
handleBuildParameters,
73+
handleSettings,
7474
workspace,
7575
isUpdating,
7676
resources,
@@ -136,7 +136,7 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
136136
handleUpdate={handleUpdate}
137137
handleCancel={handleCancel}
138138
handleChangeVersion={handleChangeVersion}
139-
handleBuildParameters={handleBuildParameters}
139+
handleSettings={handleSettings}
140140
isUpdating={isUpdating}
141141
/>
142142
</Stack>

site/src/components/WorkspaceActions/WorkspaceActions.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const renderComponent = async (props: Partial<WorkspaceActionsProps> = {}) => {
2020
handleUpdate={jest.fn()}
2121
handleCancel={jest.fn()}
2222
handleChangeVersion={jest.fn()}
23-
handleBuildParameters={jest.fn()}
23+
handleSettings={jest.fn()}
2424
isUpdating={false}
2525
/>,
2626
)
@@ -40,7 +40,7 @@ const renderAndClick = async (props: Partial<WorkspaceActionsProps> = {}) => {
4040
handleUpdate={jest.fn()}
4141
handleCancel={jest.fn()}
4242
handleChangeVersion={jest.fn()}
43-
handleBuildParameters={jest.fn()}
43+
handleSettings={jest.fn()}
4444
isUpdating={false}
4545
/>,
4646
)

site/src/components/WorkspaceActions/WorkspaceActions.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ChangeVersionButton,
88
DeleteButton,
99
DisabledButton,
10-
BuildParametersButton,
10+
SettingsButton,
1111
StartButton,
1212
StopButton,
1313
UpdateButton,
@@ -24,7 +24,7 @@ export interface WorkspaceActionsProps {
2424
handleUpdate: () => void
2525
handleCancel: () => void
2626
handleChangeVersion: () => void
27-
handleBuildParameters: () => void
27+
handleSettings: () => void
2828
isUpdating: boolean
2929
children?: ReactNode
3030
}
@@ -39,7 +39,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
3939
handleUpdate,
4040
handleCancel,
4141
handleChangeVersion,
42-
handleBuildParameters,
42+
handleSettings,
4343
isUpdating,
4444
}) => {
4545
const { t } = useTranslation("workspacePage")
@@ -59,7 +59,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
5959
<ChangeVersionButton handleAction={handleChangeVersion} />
6060
),
6161
[ButtonTypesEnum.buildParameters]: (
62-
<BuildParametersButton handleAction={handleBuildParameters} />
62+
<SettingsButton handleAction={handleSettings} />
6363
),
6464
[ButtonTypesEnum.start]: <StartButton handleAction={handleStart} />,
6565
[ButtonTypesEnum.starting]: (

site/src/i18n/en/workspacePage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"stopping": "Stopping...",
3030
"deleting": "Deleting...",
3131
"changeVersion": "Change version",
32-
"buildParameters": "Build parameters"
32+
"settings": "Settings"
3333
},
3434
"disabledButton": {
3535
"canceling": "Canceling",

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const WorkspaceReadyPage = ({
113113
handleUpdate={() => workspaceSend({ type: "UPDATE" })}
114114
handleCancel={() => workspaceSend({ type: "CANCEL" })}
115115
handleChangeVersion={() => navigate("change-version")}
116-
handleBuildParameters={() => navigate("build-parameters")}
116+
handleSettings={() => navigate("settings")}
117117
resources={workspace.latest_build.resources}
118118
builds={builds}
119119
canUpdateWorkspace={canUpdateWorkspace}

0 commit comments

Comments
 (0)