Skip to content

Commit 9e932fe

Browse files
Fix [Functions Panel] function create - deploy button (#2100)
1 parent 7fa605f commit 9e932fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/FunctionsPanel/FunctionsPanelView.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ import { Button, ConfirmDialog } from 'igz-controls/components'
3434

3535
import { FUNCTION_PANEL_MODE } from '../../types'
3636
import { runtimeSections } from './functionsPanel.util'
37-
38-
import { PANEL_DEFAULT_ACCESS_KEY } from '../../constants'
37+
import { JOB_KIND_JOB, PANEL_DEFAULT_ACCESS_KEY } from '../../constants'
3938
import { LABEL_BUTTON, SECONDARY_BUTTON, TERTIARY_BUTTON } from 'igz-controls/constants'
4039

4140
import { ReactComponent as Arrow } from 'igz-controls/images/arrow.svg'
@@ -185,7 +184,7 @@ const FunctionsPanelView = ({
185184
/>
186185
<Button
187186
variant={SECONDARY_BUTTON}
188-
label="Deploy"
187+
label={functionsStore.newFunction.kind === JOB_KIND_JOB ? 'Create' : 'Deploy'}
189188
onClick={() => handleSave(true)}
190189
disabled={!checkValidation()}
191190
/>

0 commit comments

Comments
 (0)