team req for service acc (#13302)

This commit is contained in:
tanjiro 2025-08-06 05:01:54 +09:00 committed by GitHub
parent 2eef77d960
commit fd92f3eaf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -573,6 +573,13 @@ const CreateKey: React.FC<CreateKeyProps> = ({
name="team_id"
initialValue={team ? team.team_id : null}
className="mt-4"
rules={[
{
required: keyOwner === "service_account",
message: "Please select a team for the service account"
}
]}
help={keyOwner === "service_account" ? "required" : ""}
>
<TeamDropdown
teams={teams}