Skip to content

Commit 338c144

Browse files
committed
feat: add appId prop to GitInfoMaterialProps and update BuildImageModal usage
1 parent 4aff42b commit 338c144

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/app/details/triggerView/BuildImageModal/BuildImageModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ const BuildImageModal = ({
402402
handleDisplayWebhookModal={handleDisplayWebhookModal}
403403
selectedCIPipeline={selectedCIPipeline}
404404
handleReloadWithWorkflows={handleReloadWithWorkflows}
405+
appId={appId}
405406
/>
406407
)}
407408
</APIResponseHandler>

src/components/app/details/triggerView/BuildImageModal/types.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface TriggerBuildSidebarProps {
4343

4444
type SetMaterialCBType = (prevMaterialList: CIMaterialType[]) => CIMaterialType[]
4545

46-
export type GitInfoMaterialProps = Pick<BuildImageModalProps, 'appId' | 'isJobView'> & {
46+
export type GitInfoMaterialProps = Pick<BuildImageModalProps, 'isJobView'> & {
4747
workflowId: string
4848
node: CommonNodeAttr
4949
setMaterialList: (cb: SetMaterialCBType) => void
@@ -53,14 +53,15 @@ export type GitInfoMaterialProps = Pick<BuildImageModalProps, 'appId' | 'isJobVi
5353
reloadCompleteMaterialList: () => void
5454
handleRuntimeParamChange: HandleRuntimeParamChange
5555
handleRuntimeParamError: (errorState: RuntimeParamsErrorState) => void
56-
/**
57-
* Only required for isJobView
58-
*/
59-
selectedEnv?: EnvironmentWithSelectPickerType
6056
runtimeParams: RuntimePluginVariables[]
6157
handleDisplayWebhookModal: () => void
6258
selectedCIPipeline: TriggerViewState['filteredCIPipelines'][number]
6359
handleReloadWithWorkflows: () => void
60+
appId: number
61+
/**
62+
* Only required for isJobView
63+
*/
64+
selectedEnv?: EnvironmentWithSelectPickerType
6465
} & (
6566
| {
6667
isBulkTrigger: true

0 commit comments

Comments
 (0)