Skip to content

Commit

Permalink
Initialize & send forceHttpBasicAuth & enableOCI params correctly dur…
Browse files Browse the repository at this point in the history
…ing repo update from UI (argoproj#16794)
  • Loading branch information
svghadi authored and clement-heetch committed Feb 12, 2024
1 parent b8f0c4a commit 6c479df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/src/app/settings/components/repo-details/repo-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export const RepoDetails = (props: {repo: models.Repository; save?: (params: New
enableLfs: repo.enableLfs || false,
proxy: repo.proxy || '',
project: repo.project || '',
enableOCI: repo.enableOCI || false
enableOCI: repo.enableOCI || false,
forceHttpBasicAuth: repo.forceHttpBasicAuth || false
};

return (
Expand Down
8 changes: 6 additions & 2 deletions ui/src/app/shared/services/repo-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export class RepositoriesService {
insecure,
enableLfs,
proxy,
project
project,
forceHttpBasicAuth,
enableOCI
}: {
type: string;
name: string;
Expand All @@ -75,10 +77,12 @@ export class RepositoriesService {
enableLfs: boolean;
proxy: string;
project?: string;
forceHttpBasicAuth?: boolean;
enableOCI: boolean;
}): Promise<models.Repository> {
return requests
.put(`/repositories/${encodeURIComponent(url)}`)
.send({type, name, repo: url, username, password, tlsClientCertData, tlsClientCertKey, insecure, enableLfs, proxy, project})
.send({type, name, repo: url, username, password, tlsClientCertData, tlsClientCertKey, insecure, enableLfs, proxy, project, forceHttpBasicAuth, enableOCI})
.then(res => res.body as models.Repository);
}

Expand Down

0 comments on commit 6c479df

Please sign in to comment.