-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty and Delete bucket modals #1652
Empty and Delete bucket modals #1652
Conversation
@weirdwiz You need to update translations. |
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/DeleteBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-buckets/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
onClick: () => | ||
launcher(LazyDeleteBucketModal, { | ||
isOpen: true, | ||
extraProps: { bucketName, noobaaS3, launcher, refreshTokens }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extraProps: { bucketName, noobaaS3, launcher, refreshTokens }, | |
extraProps: { bucketName, noobaaS3, launcher }, |
@@ -99,7 +124,6 @@ const BucketOverview: React.FC<{}> = () => { | |||
|
|||
const { bucketName } = useParams(); | |||
const [searchParams] = useSearchParams(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: space was here to separate hooks call from normal variable...
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/components/s3-browser/bucket-overview/BucketOverview.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-and-empty-bucket/DeleteBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-and-empty-bucket/DeleteBucketModal.tsx
Outdated
Show resolved
Hide resolved
@@ -151,7 +189,7 @@ const BucketOverview: React.FC<{}> = () => { | |||
: []), | |||
]; | |||
|
|||
const actions = () => { | |||
const actions = (noobaaS3: S3Commands) => () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz fix linter issues reported by GH actions...
packages/odf/components/s3-browser/buckets-list-page/bucketListTable.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-and-empty-bucket/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-and-empty-bucket/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
packages/odf/modals/s3-browser/delete-and-empty-bucket/EmptyBucketModal.tsx
Outdated
Show resolved
Hide resolved
b2409a7
to
7efa163
Compare
{error || | ||
(deleteError && ( | ||
<Alert | ||
variant={AlertVariant.danger} | ||
isInline | ||
title={t('Error')} | ||
className="pf-v5-u-mt-md" | ||
> | ||
{error?.message || deleteError?.message} | ||
</Alert> | ||
))} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{error || | |
(deleteError && ( | |
<Alert | |
variant={AlertVariant.danger} | |
isInline | |
title={t('Error')} | |
className="pf-v5-u-mt-md" | |
> | |
{error?.message || deleteError?.message} | |
</Alert> | |
))} | |
{(error || deleteError) && ( | |
<Alert | |
variant={AlertVariant.danger} | |
isInline | |
title={t('Error')} | |
className="pf-v5-u-mt-md" | |
> | |
{error?.message || deleteError?.message} | |
</Alert> | |
)} |
7efa163
to
891ee91
Compare
/approve |
- Add Delete Bucket modal for bucket removal - Add Empty Bucket modal for clearing bucket contents - Implement success/failure alerts for operations - Handle S3 API responses Signed-off-by: Divyansh Kamboj <[email protected]>
891ee91
to
f5277c5
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SanjalKatiyar, weirdwiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test odf-console-e2e-aws |
/override ci/prow/odf-console-e2e-aws |
@alfonsomthd: Overrode contexts on behalf of alfonsomthd: ci/prow/odf-console-e2e-aws In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
54d935e
into
red-hat-storage:master
https://issues.redhat.com/browse/RHSTOR-6361