Skip to content
Closed
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
01922a0
rebasing with master
nitin-dhevar Jul 1, 2024
40685f1
type positions fixed
nitin-dhevar Jun 21, 2024
5495f36
Added i18n changes
nitin-dhevar Jun 21, 2024
a5791c2
refactoring into custom hooks for secrets title and desc
nitin-dhevar Jun 28, 2024
f8ef8bf
adding i18n changes
nitin-dhevar Jun 28, 2024
3d74d9c
Revert "refactored imageSecretForm component"
nitin-dhevar Jun 21, 2024
65b1649
refactored ImageSecretForm component
nitin-dhevar Jun 21, 2024
50673a5
ImageSecretForm component file renamed
nitin-dhevar Jun 21, 2024
9edb45f
type fixes in PullSecretForm
nitin-dhevar Jun 26, 2024
5e380b8
removed comments
nitin-dhevar Jun 26, 2024
35fd8cd
adding i18n files
nitin-dhevar Jun 26, 2024
cb8bc2e
rebase with secrets-util-refactor
nitin-dhevar Jul 1, 2024
fe757d6
adding i18n changes
nitin-dhevar Jul 1, 2024
7ae84db
fixing imagesecret data error
nitin-dhevar Jul 10, 2024
33e7ae2
refactored ConfigEntryForm component
nitin-dhevar Jun 20, 2024
bcb134b
Revert "refactored ConfigEntryForm component"
nitin-dhevar Jun 21, 2024
fd5fc1e
refactored ConfigEntryForm component
nitin-dhevar Jun 21, 2024
5a2a63d
renamed ConfigEntryForm file
nitin-dhevar Jun 21, 2024
89be65d
refactoring into controlled component
nitin-dhevar Jun 27, 2024
b7a3adb
adding type def for updateEntry
nitin-dhevar Jul 1, 2024
fbed05c
adding 18n changes
nitin-dhevar Jul 1, 2024
ac78dd2
fixing auth param error
nitin-dhevar Jul 11, 2024
317c297
adding auth condition
nitin-dhevar Jul 11, 2024
c6dc223
refactoring createConfigSubform component
nitin-dhevar Jul 5, 2024
412fff4
fixing types
nitin-dhevar Jul 11, 2024
c0e4cdc
renaming file to PullSecretCredentialsForm
nitin-dhevar Jul 15, 2024
a03809d
adding i18n changes
nitin-dhevar Jul 15, 2024
c4b2771
renaming component
nitin-dhevar Jul 15, 2024
2d9d72e
renaming component
nitin-dhevar Jul 15, 2024
540e685
Added i18n changes
nitin-dhevar Jun 21, 2024
835ce1c
adding i18n changes
nitin-dhevar Jun 28, 2024
e2df05e
Revert "refactored imageSecretForm component"
nitin-dhevar Jun 21, 2024
1438e4f
adding i18n files
nitin-dhevar Jun 26, 2024
8929f12
adding i18n changes
nitin-dhevar Jul 1, 2024
79c8105
refactoring upload config subform
nitin-dhevar Jul 13, 2024
5fac2d6
renaming uploadConfigSub form
nitin-dhevar Jul 15, 2024
a8c5e01
renaming props and adding exception handling
nitin-dhevar Jul 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
SecretType,
BasicAuthSubform,
SSHAuthSubform,
CreateConfigSubform,
PullSecretCredentialsForm,
PullSecretData,
} from '@console/internal/components/secrets/create-secret';
import { ButtonBar } from '@console/internal/components/utils';
import { DropdownField, InputField, ActionGroupWithIcons } from '@console/shared';
Expand All @@ -19,7 +20,7 @@ const renderSecretForm = (
stringData: {
[key: string]: any;
},
onDataChanged: (value: string) => void,
onDataChanged: (value: PullSecretData) => void,
) => {
switch (type) {
case SecretType.basicAuth:
Expand All @@ -32,7 +33,7 @@ const renderSecretForm = (
);
case SecretType.dockerconfigjson:
return (
<CreateConfigSubform
<PullSecretCredentialsForm
onChange={onDataChanged}
stringData={stringData[SecretType.dockerconfigjson]}
/>
Expand Down Expand Up @@ -134,7 +135,7 @@ const SecretForm: React.FC<FormikProps<SecretFormValues>> = ({
}
};

const onDataChanged = (value: string) => {
const onDataChanged = (value: PullSecretData) => {
setStringData((prevState) => {
setValues(values.type, { ...prevState, [values.type]: value });
return { ...prevState, [values.type]: value };
Expand Down
169 changes: 0 additions & 169 deletions frontend/public/components/secrets/create-secret/ConfigEntryForm.tsx

This file was deleted.

This file was deleted.

Loading