File tree 6 files changed +15
-15
lines changed
6 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ export const ChangeVersionButton: FC<
54
54
)
55
55
}
56
56
57
- export const BuildParametersButton : FC <
58
- React . PropsWithChildren < WorkspaceAction >
59
- > = ( { handleAction } ) => {
57
+ export const SettingsButton : FC < React . PropsWithChildren < WorkspaceAction > > = ( {
58
+ handleAction ,
59
+ } ) => {
60
60
const styles = useStyles ( )
61
61
const { t } = useTranslation ( "workspacePage" )
62
62
@@ -67,7 +67,7 @@ export const BuildParametersButton: FC<
67
67
startIcon = { < SettingsOutlined /> }
68
68
onClick = { handleAction }
69
69
>
70
- { t ( "actionButton.buildParameters " ) }
70
+ { t ( "actionButton.settings " ) }
71
71
</ Button >
72
72
)
73
73
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export interface WorkspaceProps {
43
43
handleUpdate : ( ) => void
44
44
handleCancel : ( ) => void
45
45
handleChangeVersion : ( ) => void
46
- handleBuildParameters : ( ) => void
46
+ handleSettings : ( ) => void
47
47
isUpdating : boolean
48
48
workspace : TypesGen . Workspace
49
49
resources ?: TypesGen . WorkspaceResource [ ]
@@ -70,7 +70,7 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
70
70
handleUpdate,
71
71
handleCancel,
72
72
handleChangeVersion,
73
- handleBuildParameters ,
73
+ handleSettings ,
74
74
workspace,
75
75
isUpdating,
76
76
resources,
@@ -136,7 +136,7 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
136
136
handleUpdate = { handleUpdate }
137
137
handleCancel = { handleCancel }
138
138
handleChangeVersion = { handleChangeVersion }
139
- handleBuildParameters = { handleBuildParameters }
139
+ handleSettings = { handleSettings }
140
140
isUpdating = { isUpdating }
141
141
/>
142
142
</ Stack >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const renderComponent = async (props: Partial<WorkspaceActionsProps> = {}) => {
20
20
handleUpdate = { jest . fn ( ) }
21
21
handleCancel = { jest . fn ( ) }
22
22
handleChangeVersion = { jest . fn ( ) }
23
- handleBuildParameters = { jest . fn ( ) }
23
+ handleSettings = { jest . fn ( ) }
24
24
isUpdating = { false }
25
25
/> ,
26
26
)
@@ -40,7 +40,7 @@ const renderAndClick = async (props: Partial<WorkspaceActionsProps> = {}) => {
40
40
handleUpdate = { jest . fn ( ) }
41
41
handleCancel = { jest . fn ( ) }
42
42
handleChangeVersion = { jest . fn ( ) }
43
- handleBuildParameters = { jest . fn ( ) }
43
+ handleSettings = { jest . fn ( ) }
44
44
isUpdating = { false }
45
45
/> ,
46
46
)
Original file line number Diff line number Diff line change 7
7
ChangeVersionButton ,
8
8
DeleteButton ,
9
9
DisabledButton ,
10
- BuildParametersButton ,
10
+ SettingsButton ,
11
11
StartButton ,
12
12
StopButton ,
13
13
UpdateButton ,
@@ -24,7 +24,7 @@ export interface WorkspaceActionsProps {
24
24
handleUpdate : ( ) => void
25
25
handleCancel : ( ) => void
26
26
handleChangeVersion : ( ) => void
27
- handleBuildParameters : ( ) => void
27
+ handleSettings : ( ) => void
28
28
isUpdating : boolean
29
29
children ?: ReactNode
30
30
}
@@ -39,7 +39,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
39
39
handleUpdate,
40
40
handleCancel,
41
41
handleChangeVersion,
42
- handleBuildParameters ,
42
+ handleSettings ,
43
43
isUpdating,
44
44
} ) => {
45
45
const { t } = useTranslation ( "workspacePage" )
@@ -59,7 +59,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
59
59
< ChangeVersionButton handleAction = { handleChangeVersion } />
60
60
) ,
61
61
[ ButtonTypesEnum . buildParameters ] : (
62
- < BuildParametersButton handleAction = { handleBuildParameters } />
62
+ < SettingsButton handleAction = { handleSettings } />
63
63
) ,
64
64
[ ButtonTypesEnum . start ] : < StartButton handleAction = { handleStart } /> ,
65
65
[ ButtonTypesEnum . starting ] : (
Original file line number Diff line number Diff line change 29
29
"stopping" : " Stopping..." ,
30
30
"deleting" : " Deleting..." ,
31
31
"changeVersion" : " Change version" ,
32
- "buildParameters " : " Build parameters "
32
+ "settings " : " Settings "
33
33
},
34
34
"disabledButton" : {
35
35
"canceling" : " Canceling" ,
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export const WorkspaceReadyPage = ({
113
113
handleUpdate = { ( ) => workspaceSend ( { type : "UPDATE" } ) }
114
114
handleCancel = { ( ) => workspaceSend ( { type : "CANCEL" } ) }
115
115
handleChangeVersion = { ( ) => navigate ( "change-version" ) }
116
- handleBuildParameters = { ( ) => navigate ( "build-parameters " ) }
116
+ handleSettings = { ( ) => navigate ( "settings " ) }
117
117
resources = { workspace . latest_build . resources }
118
118
builds = { builds }
119
119
canUpdateWorkspace = { canUpdateWorkspace }
You can’t perform that action at this time.
0 commit comments