Skip to content

Commit

Permalink
Add bucket replication screen (#3040)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinapurapu authored Feb 26, 2024
1 parent 31056e1 commit 54c0b4b
Show file tree
Hide file tree
Showing 6 changed files with 584 additions and 7 deletions.
7 changes: 3 additions & 4 deletions web-app/src/api/consoleApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1743,10 +1743,9 @@ export class HttpClient<SecurityDataType = unknown> {
? { "Content-Type": type }
: {}),
},
signal:
(cancelToken
? this.createAbortSignal(cancelToken)
: requestParams.signal) || null,
signal: cancelToken
? this.createAbortSignal(cancelToken)
: requestParams.signal,
body:
typeof body === "undefined" || body === null
? null
Expand Down
4 changes: 4 additions & 0 deletions web-app/src/common/SecureComponent/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const IAM_PAGES = {
/* Buckets */
BUCKETS: "/buckets",
ADD_BUCKETS: "add-bucket",
BUCKETS_ADD_REPLICATION: "/buckets/add-replication",
BUCKETS_ADMIN_VIEW: ":bucketName/admin/*",
BUCKETS_EDIT_REPLICATION: "/buckets/edit-replication",
/* Object Browser */
Expand Down Expand Up @@ -296,6 +297,9 @@ export const IAM_PAGES_PERMISSIONS = {
[IAM_PAGES.BUCKETS_EDIT_REPLICATION]: [
...IAM_PERMISSIONS[IAM_ROLES.BUCKET_ADMIN], // edit bucket replication bucket page
],
[IAM_PAGES.BUCKETS_ADD_REPLICATION]: [
...IAM_PERMISSIONS[IAM_ROLES.BUCKET_ADMIN], // add bucket replication rule
],
[IAM_PAGES.BUCKETS_ADMIN_VIEW]: [
...IAM_PERMISSIONS[IAM_ROLES.BUCKET_ADMIN], // bucket admin page
],
Expand Down
Loading

0 comments on commit 54c0b4b

Please sign in to comment.