重构消息通知弹窗
This commit is contained in:
parent
f66524bac6
commit
0a10f1def1
@ -136,8 +136,9 @@ export const TeamApplicationManageDialog: React.FC<
|
|||||||
environmentId: editingEnvironment.id,
|
environmentId: editingEnvironment.id,
|
||||||
buildType: data.buildType || undefined,
|
buildType: data.buildType || undefined,
|
||||||
branch: data.branch,
|
branch: data.branch,
|
||||||
deploySystemId: data.deploySystemId || undefined,
|
// 只有当 buildType 为 JENKINS 时才传递 Jenkins 相关字段
|
||||||
deployJob: data.deployJob,
|
deploySystemId: data.buildType === 'JENKINS' ? (data.deploySystemId || undefined) : undefined,
|
||||||
|
deployJob: data.buildType === 'JENKINS' ? data.deployJob : '',
|
||||||
workflowDefinitionId: data.workflowDefinitionId || undefined,
|
workflowDefinitionId: data.workflowDefinitionId || undefined,
|
||||||
codeSourceSystemId: data.codeSourceSystemId || undefined,
|
codeSourceSystemId: data.codeSourceSystemId || undefined,
|
||||||
codeSourceProjectId: data.codeSourceProjectId || undefined,
|
codeSourceProjectId: data.codeSourceProjectId || undefined,
|
||||||
|
|||||||
@ -241,19 +241,20 @@ const TeamModal: React.FC<TeamModalProps> = ({
|
|||||||
control={form.control}
|
control={form.control}
|
||||||
name="enabled"
|
name="enabled"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem className="flex items-center justify-between rounded-lg border p-4">
|
<FormItem>
|
||||||
<div className="space-y-0.5">
|
<FormLabel>状态</FormLabel>
|
||||||
<FormLabel>状态</FormLabel>
|
|
||||||
<div className="text-sm text-muted-foreground">
|
|
||||||
{field.value ? '启用' : '禁用'}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Switch
|
<div className="flex items-center gap-2 h-10">
|
||||||
checked={field.value}
|
<Switch
|
||||||
onCheckedChange={field.onChange}
|
checked={field.value}
|
||||||
/>
|
onCheckedChange={field.onChange}
|
||||||
|
/>
|
||||||
|
<span className="text-sm text-muted-foreground">
|
||||||
|
{field.value ? '启用' : '禁用'}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user